diff options
author | James Moger <james.moger@gitblit.com> | 2013-11-20 22:12:54 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-11-29 11:05:51 -0500 |
commit | a1f27e2fac7b38b87645bd53b7e023484c796f1c (patch) | |
tree | 3bd6bcdfc5ae274e5bbb0c28d7d23941d3dc75fa /src/main/java/com/gitblit/DaggerModule.java | |
parent | 95cdba46c79d952f2c2baba937e70796674ed57e (diff) | |
download | gitblit-a1f27e2fac7b38b87645bd53b7e023484c796f1c.tar.gz gitblit-a1f27e2fac7b38b87645bd53b7e023484c796f1c.zip |
Extract ProjectManager from the GitBlit singleton
Change-Id: I93493a473e3d6ea9b2523c1913d6dc323642344d
Diffstat (limited to 'src/main/java/com/gitblit/DaggerModule.java')
-rw-r--r-- | src/main/java/com/gitblit/DaggerModule.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/DaggerModule.java b/src/main/java/com/gitblit/DaggerModule.java index 240fe7fc..8cd9c8b5 100644 --- a/src/main/java/com/gitblit/DaggerModule.java +++ b/src/main/java/com/gitblit/DaggerModule.java @@ -29,6 +29,7 @@ import com.gitblit.manager.IRuntimeManager; import com.gitblit.manager.ISessionManager; import com.gitblit.manager.IUserManager; import com.gitblit.manager.NotificationManager; +import com.gitblit.manager.ProjectManager; import com.gitblit.manager.RepositoryManager; import com.gitblit.manager.RuntimeManager; import com.gitblit.manager.SessionManager; @@ -125,8 +126,15 @@ public class DaggerModule { userManager); } - @Provides @Singleton IProjectManager provideProjectManager() { - return gitblit; + @Provides @Singleton IProjectManager provideProjectManager( + IRuntimeManager runtimeManager, + IUserManager userManager, + IRepositoryManager repositoryManager) { + + return new ProjectManager( + runtimeManager, + userManager, + repositoryManager); } @Provides @Singleton IGitblitManager provideGitblitManager() { |