summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/DaggerModule.java
Commit message (Collapse)AuthorAgeFilesLines
* Move the DaggerModule to the Dagger packageJames Moger2014-07-031-185/+0
|
* Embrace @Inject for Managers, Servlets, and FiltersJames Moger2014-07-031-377/+18
|
* Return of Servlet3 servlet and filter loadingJames Moger2014-07-031-1/+330
| | | | This is a quick return of the servlet3-style code which was reverted mid-December 2013. It is not completely tested, but a casual review was done and it's looks good. The next steps should be to restore `@Inject` annotations, simplify *DaggerModule* boilerplate, and run this on a JEE container with CDI - like JBoss AS 7.
* Add repository and user/team lifecycle listener extension pointsJames Moger2014-06-091-2/+7
|
* Expose the plugin manager to the webappJames Moger2014-04-141-0/+2
|
* Style: changed manager order to reflect dependency chainJames Moger2014-04-101-11/+11
| | | | Managers are mostly declared in dependency order. Managers with fewer dependencies are first. They are likely to be components of other managers. Also eliminated import artifacts from the cherry-pick.
* Add plugins/extension infrastructureDavid Ostrovsky2014-04-101-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Plugins are stored in `${baseFolder}/plugins` and are loaded during startup by the PluginManager. A plugin defines it's metadata in META-INF/MANIFEST.MF: Plugin-Class: com.gitblit.plugins.cookbook.CookbookPlugin Plugin-Dependencies: foo, bar Plugin-Id: gitblit-plugin Plugin-Provider: John Doe Plugin-Version: 1.0 Plugins can define extension points that can be implemented by other plugins and they can depend on other plugins: Plugin-Dependencies: foo, bar During the load phase, a directed acyclic graph is built and the loading order of the dependency chain is reversed using a topological sort; parent followed by children. The parent plugin classloader is the combined classloader of all parent plugins. Change-Id: I738821fa2bff02a5dbe339a944cc7e3c4dd8e299
* Elevate the public key manager to a top-level managerJames Moger2014-04-101-1/+36
|
* Rollback to Servlet 2.5James Moger2013-12-111-177/+2
| | | | | | | | | | | | | | | | | 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-3/+143
| | | | Change-Id: I2e4a8e7424e7c62d1e89ca62a91423fdf3e36ac8
* Refactor managers and authentication for federationJames Moger2013-11-291-2/+0
| | | | Change-Id: I5ff18b2768095fb14e7fbece2e756115829abbde
* Flattened IGitblitManager, GitblitManager, and GitBlit classesJames Moger2013-11-291-29/+7
| | | | Change-Id: Id6deb27306e0034898673bf5d5d76a4ed012ced6
* Refactor user services and separate authentication (issue-281)James Moger2013-11-291-9/+9
| | | | Change-Id: I336e005e02623fc5e11a4f8b4408bea5465a43fd
* Renamed Gitblit to GitBlit to not break existing Groovy hooksJames Moger2013-11-291-4/+4
| | | | Change-Id: Id5286ed1b9d7e92644cacf857096e6dd273c8f05
* Moved servlets and services to separate packagesJames Moger2013-11-291-0/+15
| | | | Change-Id: I5f0f50f4ae7d332e9f724a2e6f074fa71f646035
* Extract Federation, Gitblit and Services manager from GitBlit singletonJames Moger2013-11-291-13/+32
| | | | Change-Id: I2b2f361a868c8eedf4b6df5939e7dfac2d5f92a9
* Extract ProjectManager from the GitBlit singletonJames Moger2013-11-291-2/+10
| | | | Change-Id: I93493a473e3d6ea9b2523c1913d6dc323642344d
* Extract RepositoryManager from the GitBlit singletonJames Moger2013-11-291-2/+8
| | | | Change-Id: I265cfaf25e4093ffa5f53f70d8eb1c20d731b7b3
* Extract SessionManager from GitBlit singletonJames Moger2013-11-291-2/+8
| | | | Change-Id: I85c9dfc1413f858dc28d731a0bf653828626e127
* Extract UserManager from GitBlit singletonJames Moger2013-11-291-2/+3
| | | | Change-Id: I4885255ed63aa6c4e000c3e5501675440dca3958
* Extract NotificationManager from GitBlit singletonJames Moger2013-11-291-2/+3
| | | | Change-Id: I40335a1a3966d6c7c55bcdcca5a6dbf2a91a65d7
* Extract RuntimeManager from GitBlit singletonJames Moger2013-11-291-2/+9
| | | | Change-Id: I5358389396f816da979ec18a31421c2d2b67b3d9
* Create a Gitblit aggregate manager delegate for git upload/receive tasksJames Moger2013-11-291-0/+24
| | | | Change-Id: I2c4a5ddf051f228c0bd949c6cd4fd44c3da81d26
* Use Dagger to inject managers into all filters and servletsJames Moger2013-11-291-0/+136
Change-Id: I9bb2cc0cbfac9841b13bed15a474fefb24355cd4