When a manager is injected through other means, (e.g. using a different GuiceModule and injector in Gerrit) we need a way to start it without having to necessarily passing through the injection process again.tags/v1.7.0
@@ -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()); |