disable everything that requires extraneous third-party jarfiles
[org.ibex.xt.git] / src / org / ibex / xt / Prevalence.java
index 2bfbfb1..a0be70b 100644 (file)
@@ -11,32 +11,32 @@ import java.net.*;
 import java.util.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
-import com.thoughtworks.xstream.*;
-import org.prevayler.*;
-import org.prevayler.implementation.snapshot.XmlSnapshotManager;
+//import com.thoughtworks.xstream.*;
+//import org.prevayler.*;
+//import org.prevayler.implementation.snapshot.XmlSnapshotManager;
 
 public class Prevalence {
 
     public static abstract class PrevalentServlet extends HttpServlet {
        protected Hashtable prevalent;
-       protected Prevayler prevayler;
+       //protected Prevayler prevayler;
        protected ServletContext cx = null;
        public void destroy() { try {
            synchronized(this.getClass()) {
-               Prevayler privatePrevayler = prevayler;
-               if (prevayler == null) return;
-               prevayler = null;
-               Prevalence.destroy(cx, prevayler);
+               //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 = (Hashtable)prevayler.prevalentSystem();
+           //prevayler = Prevalence.getPrevayler(cx);
+           //prevalent = (Hashtable)prevayler.prevalentSystem();
        }
     }
-
+    /*
     static final Hashtable prevaylers = new Hashtable();
 
     public static void destroy(ServletContext cx, Prevayler prevayler) { try {
@@ -117,4 +117,5 @@ public class Prevalence {
             } catch (Exception e) { throw new RuntimeException(e); }
         }
     }
+    */
 }