| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I2e4a8e7424e7c62d1e89ca62a91423fdf3e36ac8
|
|
|
|
| |
Change-Id: I5ff18b2768095fb14e7fbece2e756115829abbde
|
|
|
|
| |
Change-Id: Id6deb27306e0034898673bf5d5d76a4ed012ced6
|
|
|
|
| |
Change-Id: I336e005e02623fc5e11a4f8b4408bea5465a43fd
|
|
|
|
| |
Change-Id: Id5286ed1b9d7e92644cacf857096e6dd273c8f05
|
|
|
|
| |
Change-Id: I5f0f50f4ae7d332e9f724a2e6f074fa71f646035
|
|
|
|
| |
Change-Id: I2b2f361a868c8eedf4b6df5939e7dfac2d5f92a9
|
|
|
|
| |
Change-Id: I93493a473e3d6ea9b2523c1913d6dc323642344d
|
|
|
|
| |
Change-Id: I265cfaf25e4093ffa5f53f70d8eb1c20d731b7b3
|
|
|
|
| |
Change-Id: I85c9dfc1413f858dc28d731a0bf653828626e127
|
|
|
|
| |
Change-Id: I4885255ed63aa6c4e000c3e5501675440dca3958
|
|
|
|
| |
Change-Id: I40335a1a3966d6c7c55bcdcca5a6dbf2a91a65d7
|
|
|
|
| |
Change-Id: I5358389396f816da979ec18a31421c2d2b67b3d9
|
|
|
|
| |
Change-Id: I2c4a5ddf051f228c0bd949c6cd4fd44c3da81d26
|
|
Change-Id: I9bb2cc0cbfac9841b13bed15a474fefb24355cd4
|