diff options
Diffstat (limited to '')
2 files changed, 0 insertions, 16 deletions
diff --git a/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java b/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java index 470428bb05..fd6a3ed22b 100644 --- a/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java +++ b/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java @@ -52,10 +52,6 @@ public class ServletHostHelper { public static final String SCA_NODE_ATTRIBUTE = Node.class.getName();
-// public static ServletHost getServletHost() {
-// return WebAppServletHost.getInstance();
-// }
-
public static void init(ServletConfig servletConfig) {
init(servletConfig.getServletContext());
}
diff --git a/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java b/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java index f05203f5e8..c572d9f1d3 100644 --- a/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java +++ b/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java @@ -41,9 +41,6 @@ import org.apache.tuscany.sca.node.Node; /** * ServletHost implementation for use in a webapp environment. * - * FIXME: TUSCANY-2881: using a static singleton seems a big hack but how should it be shared? - * Need some way for TuscanyServlet to pull it out. - * * @version $Rev$ $Date$ */ public class WebAppServletHost implements ServletHost { @@ -51,8 +48,6 @@ public class WebAppServletHost implements ServletHost { public static final String SCA_NODE_ATTRIBUTE = Node.class.getName(); -// private static final WebAppServletHost instance = new WebAppServletHost(); - private Map<String, Servlet> servlets; private String contextPath = "/"; private int defaultPortNumber = 8080; @@ -199,10 +194,6 @@ public class WebAppServletHost implements ServletHost { return null; } -// public static WebAppServletHost getInstance() { -// return instance; -// } - public void init(ServletConfig config) throws ServletException { servletContext = config.getServletContext(); @@ -236,9 +227,6 @@ public class WebAppServletHost implements ServletHost { } public void setContextPath(String path) { - // if (!contextPath.equals(path)) { - // throw new IllegalArgumentException("invalid context path for webapp, existing context path: " + contextPath + " new contextPath: " + path); - // } } /** |