瀏覽代碼

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 年之前
父節點
當前提交
b0501c3347
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      src/main/java/com/gitblit/servlet/GitblitContext.java

+ 6
- 0
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());

Loading…
取消
儲存