diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/gitblit/servlet/GitblitContext.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/servlet/GitblitContext.java b/src/main/java/com/gitblit/servlet/GitblitContext.java index fa0534db..85b47205 100644 --- a/src/main/java/com/gitblit/servlet/GitblitContext.java +++ b/src/main/java/com/gitblit/servlet/GitblitContext.java @@ -266,6 +266,12 @@ public class GitblitContext extends GuiceServletContextListener { return x; } + protected <X extends IManager> X startManager(X x) { + x.start(); + managers.add(x); + return x; + } + protected void logManager(Class<? extends IManager> clazz) { logger.info(""); logger.info("----[{}]----", clazz.getName()); |