]> source.dussan.org Git - gitblit.git/commit
Rollback to Servlet 2.5
authorJames Moger <james.moger@gitblit.com>
Thu, 12 Dec 2013 04:12:12 +0000 (23:12 -0500)
committerJames Moger <james.moger@gitblit.com>
Thu, 12 Dec 2013 04:12:12 +0000 (23:12 -0500)
commit65d5bb3f1cbfb42be5a3c4aa077b7ab2504082af
tree4d4c709c499c0ed46c237a7e2cb04dec28acdea2
parente55930b4a3c657eb71fad3aa3f2d276439fc4a8c
Rollback to Servlet 2.5

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
31 files changed:
releases.moxie
src/main/java/WEB-INF/web.xml
src/main/java/com/gitblit/DaggerModule.java
src/main/java/com/gitblit/dagger/DaggerContext.java [new file with mode: 0644]
src/main/java/com/gitblit/dagger/DaggerContextListener.java [deleted file]
src/main/java/com/gitblit/dagger/DaggerFilter.java [new file with mode: 0644]
src/main/java/com/gitblit/dagger/DaggerServlet.java [new file with mode: 0644]
src/main/java/com/gitblit/dagger/DaggerWicketFilter.java [new file with mode: 0644]
src/main/java/com/gitblit/git/GitServlet.java [deleted file]
src/main/java/com/gitblit/servlet/AccessRestrictionFilter.java
src/main/java/com/gitblit/servlet/AuthenticationFilter.java
src/main/java/com/gitblit/servlet/BranchGraphServlet.java
src/main/java/com/gitblit/servlet/DownloadZipFilter.java
src/main/java/com/gitblit/servlet/DownloadZipServlet.java
src/main/java/com/gitblit/servlet/EnforceAuthenticationFilter.java
src/main/java/com/gitblit/servlet/FederationServlet.java
src/main/java/com/gitblit/servlet/GitFilter.java
src/main/java/com/gitblit/servlet/GitServlet.java [new file with mode: 0644]
src/main/java/com/gitblit/servlet/GitblitContext.java
src/main/java/com/gitblit/servlet/InjectionContextListener.java [deleted file]
src/main/java/com/gitblit/servlet/JsonServlet.java
src/main/java/com/gitblit/servlet/LogoServlet.java
src/main/java/com/gitblit/servlet/PagesFilter.java
src/main/java/com/gitblit/servlet/PagesServlet.java
src/main/java/com/gitblit/servlet/RobotsTxtServlet.java
src/main/java/com/gitblit/servlet/RpcFilter.java
src/main/java/com/gitblit/servlet/RpcServlet.java
src/main/java/com/gitblit/servlet/SparkleShareInviteServlet.java
src/main/java/com/gitblit/servlet/SyndicationFilter.java
src/main/java/com/gitblit/servlet/SyndicationServlet.java
src/main/java/com/gitblit/wicket/GitblitWicketFilter.java