From da7cc154ec697b179afd2aa5dc4c46771f21936e Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 19 Oct 2004 07:49:36 +0000 Subject: [PATCH] major update to xt darcs-hash:20041019074936-5007d-3975051f2a9242bfa1277407be2b90e670397941.gz --- src/org/ibex/xt/Prevalence.java | 29 +++++++++++++++++++++++++---- src/org/ibex/xt/Servlet.java | 16 +++++----------- 2 files changed, 30 insertions(+), 15 deletions(-) diff --git a/src/org/ibex/xt/Prevalence.java b/src/org/ibex/xt/Prevalence.java index ef87147..2057f23 100644 --- a/src/org/ibex/xt/Prevalence.java +++ b/src/org/ibex/xt/Prevalence.java @@ -46,6 +46,7 @@ public class Prevalence { String base = cx.getRealPath("/") + "WEB-INF" + File.separatorChar + "prevalent"; System.err.println("prevayling to " + base); pf.configurePrevalenceBase(base); + /* XStreamSnapshotManager manager = new XStreamSnapshotManager(new JS(), base, null) { protected XStream createXStream() { XStream xstream = new XStream(); @@ -56,6 +57,8 @@ public class Prevalence { }; System.err.println("configuring with " + manager); pf.configureSnapshotManager(manager); + */ + pf.configureSnapshotManager(new SnapshotManager(new JS(), base)); //pf.configureClassLoader(JSTransaction.class.getClassLoader()); prevayler = pf.create(); prevaylers.put(cx, prevayler); @@ -68,10 +71,27 @@ public class Prevalence { public static class JSTransaction implements Transaction { public static final long serialVersionUid = 0xfb2aa281; private JS js; - public JSTransaction(JS js) { this.js = js; } + JSScope newscope; + Vec v; + public JSTransaction(JS js) throws JSExn { + newscope = new JSScope(null); + this.js = JS.cloneWithNewParentScope(js, newscope); + v = JS.getFormalArgs(this.js); + for(int i=0; i