summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/guice
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-07-02 16:30:55 -0400
committerJames Moger <james.moger@gitblit.com>2014-07-03 17:00:40 -0400
commitf9980ea7a6615f8bfef89fae7e6569c54bc749c3 (patch)
tree983363d571f61e3b64491956658acf208f7bd509 /src/main/java/com/gitblit/guice
parent7d3a31514afbe88664081b4ea57cd7939de99014 (diff)
downloadgitblit-f9980ea7a6615f8bfef89fae7e6569c54bc749c3.tar.gz
gitblit-f9980ea7a6615f8bfef89fae7e6569c54bc749c3.zip
Annotate managers with @Singleton
Diffstat (limited to 'src/main/java/com/gitblit/guice')
-rw-r--r--src/main/java/com/gitblit/guice/CoreModule.java20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/main/java/com/gitblit/guice/CoreModule.java b/src/main/java/com/gitblit/guice/CoreModule.java
index 03cdbf22..cc73f095 100644
--- a/src/main/java/com/gitblit/guice/CoreModule.java
+++ b/src/main/java/com/gitblit/guice/CoreModule.java
@@ -15,8 +15,6 @@
*/
package com.gitblit.guice;
-import com.google.inject.Singleton;
-
import com.gitblit.FileSettings;
import com.gitblit.GitBlit;
import com.gitblit.IStoredSettings;
@@ -66,17 +64,17 @@ public class CoreModule extends AbstractModule {
bind(WorkQueue.class).toProvider(WorkQueueProvider.class);
// core managers
- bind(IRuntimeManager.class).to(RuntimeManager.class).in(Singleton.class);
- bind(IPluginManager.class).to(PluginManager.class).in(Singleton.class);
- bind(INotificationManager.class).to(NotificationManager.class).in(Singleton.class);
- bind(IUserManager.class).to(UserManager.class).in(Singleton.class);
- bind(IAuthenticationManager.class).to(AuthenticationManager.class).in(Singleton.class);
- bind(IRepositoryManager.class).to(RepositoryManager.class).in(Singleton.class);
- bind(IProjectManager.class).to(ProjectManager.class).in(Singleton.class);
- bind(IFederationManager.class).to(FederationManager.class).in(Singleton.class);
+ bind(IRuntimeManager.class).to(RuntimeManager.class);
+ bind(IPluginManager.class).to(PluginManager.class);
+ bind(INotificationManager.class).to(NotificationManager.class);
+ bind(IUserManager.class).to(UserManager.class);
+ bind(IAuthenticationManager.class).to(AuthenticationManager.class);
+ bind(IRepositoryManager.class).to(RepositoryManager.class);
+ bind(IProjectManager.class).to(ProjectManager.class);
+ bind(IFederationManager.class).to(FederationManager.class);
// the monolithic manager
- bind(IGitblit.class).to(GitBlit.class).in(Singleton.class);
+ bind(IGitblit.class).to(GitBlit.class);
// manager for long-running daemons and services
bind(IServicesManager.class).to(ServicesManager.class);