Przeglądaj źródła

Allows starting an already instantiated manager

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
Luca Milanesio 9 lat temu
rodzic
commit
b0501c3347

+ 6
- 0
src/main/java/com/gitblit/servlet/GitblitContext.java Wyświetl plik

@@ -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());

Ładowanie…
Anuluj
Zapisz