From: James Moger Date: Mon, 14 Apr 2014 19:06:25 +0000 (-0400) Subject: Expose the plugin manager to the webapp X-Git-Tag: v1.5.0~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a7af195bed674c2f0f1a74b69cefc8be1d90572d;p=gitblit.git Expose the plugin manager to the webapp --- 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; }