summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/servlet/RobotsTxtServlet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/gitblit/servlet/RobotsTxtServlet.java')
-rw-r--r--src/main/java/com/gitblit/servlet/RobotsTxtServlet.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/main/java/com/gitblit/servlet/RobotsTxtServlet.java b/src/main/java/com/gitblit/servlet/RobotsTxtServlet.java
index 94cc832a..9bd3b3c3 100644
--- a/src/main/java/com/gitblit/servlet/RobotsTxtServlet.java
+++ b/src/main/java/com/gitblit/servlet/RobotsTxtServlet.java
@@ -19,29 +19,31 @@ import java.io.File;
import java.io.IOException;
import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.gitblit.Keys;
+import com.gitblit.dagger.DaggerServlet;
import com.gitblit.manager.IRuntimeManager;
import com.gitblit.utils.FileUtils;
+import dagger.ObjectGraph;
+
/**
* Handles requests for robots.txt
*
* @author James Moger
*
*/
-public class RobotsTxtServlet extends HttpServlet {
+public class RobotsTxtServlet extends DaggerServlet {
private static final long serialVersionUID = 1L;
- private final IRuntimeManager runtimeManager;
+ private IRuntimeManager runtimeManager;
- public RobotsTxtServlet(IRuntimeManager runtimeManager) {
- super();
- this.runtimeManager = runtimeManager;
+ @Override
+ protected void inject(ObjectGraph dagger) {
+ this.runtimeManager = dagger.get(IRuntimeManager.class);
}
@Override