diff options
Diffstat (limited to 'src/main/java/com/gitblit/servlet/RpcServlet.java')
-rw-r--r-- | src/main/java/com/gitblit/servlet/RpcServlet.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/com/gitblit/servlet/RpcServlet.java b/src/main/java/com/gitblit/servlet/RpcServlet.java index a5d892fe..e7b3ed2c 100644 --- a/src/main/java/com/gitblit/servlet/RpcServlet.java +++ b/src/main/java/com/gitblit/servlet/RpcServlet.java @@ -47,6 +47,8 @@ import com.gitblit.utils.JGitUtils; import com.gitblit.utils.RpcUtils;
import com.gitblit.utils.StringUtils;
+import dagger.ObjectGraph;
+
/**
* Handles remote procedure calls.
*
@@ -59,16 +61,14 @@ public class RpcServlet extends JsonServlet { public static final int PROTOCOL_VERSION = 6;
- private final IStoredSettings settings;
-
- private final IGitblit gitblit;
+ private IStoredSettings settings;
- public RpcServlet(IGitblit gitblit) {
+ private IGitblit gitblit;
- super();
-
- this.settings = gitblit.getSettings();
- this.gitblit = gitblit;
+ @Override
+ protected void inject(ObjectGraph dagger) {
+ this.settings = dagger.get(IStoredSettings.class);
+ this.gitblit = dagger.get(IGitblit.class);
}
/**
|