summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/git/GitServlet.java
Commit message (Collapse)AuthorAgeFilesLines
* Rollback to Servlet 2.5James Moger2013-12-111-49/+0
| | | | | | | | | | | | | | | | | Combining Dagger and Servlet 3 works really well on stock Tomcat and Jetty but it is a troublesome combination on JEE containers with their own ideas on how to instantiate classes. JBoss AS 7 has been particularly nasty and it is just simpler to scaleback and stay with Servlet 2.5 than it is to fight all permuations of containers. Instead of using constructor DI, the servlets and filters each have an inject(ObjectGaph) method which is automatically called during initialization. Each servlet or filter is responsible for retrieving the required dependency from the graph. The Dagger object graph is created in the context listener and stuffed into the context as an attribute. Change-Id: Ib5714584fe73e2a6b9c6fda12af080a43356cbda
* Remove @Inject references because they confuse JEE containersJames Moger2013-12-101-2/+0
| | | | Change-Id: I2e4a8e7424e7c62d1e89ca62a91423fdf3e36ac8
* Flattened IGitblitManager, GitblitManager, and GitBlit classesJames Moger2013-11-291-3/+3
| | | | Change-Id: Id6deb27306e0034898673bf5d5d76a4ed012ced6
* Serve repositories on /r in addition to /gitJames Moger2013-11-291-2/+0
| | | | Change-Id: I3cd332a6509e434d901e1b262600f4c8ce57752b
* Renamed Gitblit to GitBlit to not break existing Groovy hooksJames Moger2013-11-291-3/+3
| | | | Change-Id: Id5286ed1b9d7e92644cacf857096e6dd273c8f05
* Create a Gitblit aggregate manager delegate for git upload/receive tasksJames Moger2013-11-291-23/+7
| | | | Change-Id: I2c4a5ddf051f228c0bd949c6cd4fd44c3da81d26
* Use Dagger to inject managers into all filters and servletsJames Moger2013-11-291-6/+28
| | | | Change-Id: I9bb2cc0cbfac9841b13bed15a474fefb24355cd4
* Instantiate and register all servlets and filters from code (servlet 3)James Moger2013-11-261-0/+3
| | | | Change-Id: I6009e8e157232feab40ec275547a59e2cea23950
* Define manager interfaces and update all of Gitblit to use managersJames Moger2013-11-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | These manager interfaces define how the GitBlit singleton will eventually be split into smaller component managers. The Wicket app and all servlets have been updated to request the needed managers. There are _very_ few method signature changes - although there are a handful. This is a surgical sharding of responsibility based on a proof of concept refactor. Instead of random references to GittBlit.self() there are now precise references to the manager interface required to accomplish some task. Some tasks may require references to multiple managers. The code is now littered with calls to GitBlit.getManager(class) and those familiar with the code-base will no doubt notice the duplication of methods from IUserService in IUserManager and the addition of implementation methods in the GitBlit context class. When the GitBlit class is broken apart and the existing external authentication user service classes are refactored to AuthenticationService classes, this will again simplify and flatten. But in order to safely and cleanly modularize the stable code-base we will have to live with a little duplication for a short while. Change-Id: I7314ec8acaab2dcc6092785ed4434cc09fdbbe16
* Trim trailing whitespace and organize importsJames Moger2013-09-301-2/+2
| | | | Change-Id: I9f91138b20219be6e3c4b28251487df262bff6cc
* Added Git Daemon supportJames Moger2013-04-031-0/+42