From a7af195bed674c2f0f1a74b69cefc8be1d90572d Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 14 Apr 2014 15:06:25 -0400 Subject: [PATCH] Expose the plugin manager to the webapp --- src/main/java/com/gitblit/DaggerModule.java | 2 ++ src/main/java/com/gitblit/wicket/GitBlitWebApp.java | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/src/main/java/com/gitblit/DaggerModule.java b/src/main/java/com/gitblit/DaggerModule.java index e448867a..b89f8c44 100644 --- a/src/main/java/com/gitblit/DaggerModule.java +++ b/src/main/java/com/gitblit/DaggerModule.java @@ -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, diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp.java b/src/main/java/com/gitblit/wicket/GitBlitWebApp.java index 6e8aa05f..58fc5b7a 100644 --- a/src/main/java/com/gitblit/wicket/GitBlitWebApp.java +++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp.java @@ -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; } -- 2.39.5