X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fxt%2FServlet.java;h=80545be30aba81ead35f54f7beaf505fcaa7ecc9;hb=895124c1bfbfb35522477936af38d250bcc65f4c;hp=0265e23d11b72d95b188321332a06a4ee1dc65ce;hpb=e8f5044051de70a1cdad65df9c5ed6bff3cd1a08;p=org.ibex.xt.git diff --git a/src/org/ibex/xt/Servlet.java b/src/org/ibex/xt/Servlet.java index 0265e23..80545be 100644 --- a/src/org/ibex/xt/Servlet.java +++ b/src/org/ibex/xt/Servlet.java @@ -15,29 +15,11 @@ import com.thoughtworks.xstream.*; import org.prevayler.*; import org.prevayler.implementation.snapshot.*; -public class Servlet extends HttpServlet { +public class Servlet extends Prevalence.PrevalentServlet { public static final JS METHOD = new JS.Method(); private ServletScope servletscope = null; private String path; - private Prevayler prevayler; - private JS prevalent; - private ServletContext cx = null; - - public void destroy() { try { - synchronized(this.getClass()) { - Prevayler privatePrevayler = prevayler; - if (prevayler == null) return; - prevayler = null; - Prevalence.destroy(cx, prevayler); - } - } catch (Exception e) { e.printStackTrace(); } } - - public void init(ServletConfig sc) throws ServletException { - cx = sc.getServletContext(); - prevayler = Prevalence.getPrevayler(cx); - prevalent = (JS)prevayler.prevalentSystem(); - } public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException { doGet(request, response); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {