]> source.dussan.org Git - gitblit.git/commitdiff
Expose the plugin manager to the webapp
authorJames Moger <james.moger@gitblit.com>
Mon, 14 Apr 2014 19:06:25 +0000 (15:06 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 14 Apr 2014 19:06:25 +0000 (15:06 -0400)
src/main/java/com/gitblit/DaggerModule.java
src/main/java/com/gitblit/wicket/GitBlitWebApp.java

index e448867a85594c8c90734a962ea905350903a4c2..b89f8c4491ad75061ab0d8f20015dc54595305be 100644 (file)
@@ -185,6 +185,7 @@ public class DaggerModule {
 
        @Provides @Singleton GitBlitWebApp provideWebApplication(
                        IRuntimeManager runtimeManager,
+                       IPluginManager pluginManager,
                        INotificationManager notificationManager,
                        IUserManager userManager,
                        IAuthenticationManager authenticationManager,
@@ -196,6 +197,7 @@ public class DaggerModule {
 
                return new GitBlitWebApp(
                                runtimeManager,
+                               pluginManager,
                                notificationManager,
                                userManager,
                                authenticationManager,
index 6e8aa05fd2e70056be609f86e92306b2af03779c..58fc5b7a025739a44506459757e6f7ba5c917024 100644 (file)
@@ -34,6 +34,7 @@ import com.gitblit.manager.IAuthenticationManager;
 import com.gitblit.manager.IFederationManager;
 import com.gitblit.manager.IGitblit;
 import com.gitblit.manager.INotificationManager;
+import com.gitblit.manager.IPluginManager;
 import com.gitblit.manager.IProjectManager;
 import com.gitblit.manager.IRepositoryManager;
 import com.gitblit.manager.IRuntimeManager;
@@ -90,6 +91,8 @@ public class GitBlitWebApp extends WebApplication {
 
        private final IRuntimeManager runtimeManager;
 
+       private final IPluginManager pluginManager;
+
        private final INotificationManager notificationManager;
 
        private final IUserManager userManager;
@@ -108,6 +111,7 @@ public class GitBlitWebApp extends WebApplication {
 
        public GitBlitWebApp(
                        IRuntimeManager runtimeManager,
+                       IPluginManager pluginManager,
                        INotificationManager notificationManager,
                        IUserManager userManager,
                        IAuthenticationManager authenticationManager,
@@ -120,6 +124,7 @@ public class GitBlitWebApp extends WebApplication {
                super();
                this.settings = runtimeManager.getSettings();
                this.runtimeManager = runtimeManager;
+               this.pluginManager = pluginManager;
                this.notificationManager = notificationManager;
                this.userManager = userManager;
                this.authenticationManager = authenticationManager;
@@ -273,6 +278,10 @@ public class GitBlitWebApp extends WebApplication {
                return runtimeManager;
        }
 
+       public IPluginManager plugins() {
+               return pluginManager;
+       }
+
        public INotificationManager notifier() {
                return notificationManager;
        }