diff options
author | James Moger <james.moger@gitblit.com> | 2014-07-02 16:30:55 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-07-03 17:00:40 -0400 |
commit | f9980ea7a6615f8bfef89fae7e6569c54bc749c3 (patch) | |
tree | 983363d571f61e3b64491956658acf208f7bd509 /src/main/java/com/gitblit/manager/FederationManager.java | |
parent | 7d3a31514afbe88664081b4ea57cd7939de99014 (diff) | |
download | gitblit-f9980ea7a6615f8bfef89fae7e6569c54bc749c3.tar.gz gitblit-f9980ea7a6615f8bfef89fae7e6569c54bc749c3.zip |
Annotate managers with @Singleton
Diffstat (limited to 'src/main/java/com/gitblit/manager/FederationManager.java')
-rw-r--r-- | src/main/java/com/gitblit/manager/FederationManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/manager/FederationManager.java b/src/main/java/com/gitblit/manager/FederationManager.java index b4dc5010..f009c1c8 100644 --- a/src/main/java/com/gitblit/manager/FederationManager.java +++ b/src/main/java/com/gitblit/manager/FederationManager.java @@ -26,7 +26,6 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import com.google.inject.Inject; import javax.servlet.http.HttpServletRequest; import org.slf4j.Logger; @@ -46,6 +45,8 @@ import com.gitblit.utils.Base64; import com.gitblit.utils.FederationUtils; import com.gitblit.utils.JsonUtils; import com.gitblit.utils.StringUtils; +import com.google.inject.Inject; +import com.google.inject.Singleton; /** * Federation manager controls all aspects of handling federation sets, tokens, @@ -54,6 +55,7 @@ import com.gitblit.utils.StringUtils; * @author James Moger * */ +@Singleton public class FederationManager implements IFederationManager { private final Logger logger = LoggerFactory.getLogger(getClass()); |