From 24314dc1699c7e73048fa24e33729f1aa1ec0e86 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 6 Jul 2012 11:00:24 +0200 Subject: Modules serialize with Castor. Just about to remove the parsing. CastorXMLUtility is now a static member of gateway. Domain specific instances can be used by domain applications, but the maps do not interfere with the kernel. --- src/main/java/com/c2kernel/entity/agent/ActiveEntity.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/c2kernel/entity/agent/ActiveEntity.java') diff --git a/src/main/java/com/c2kernel/entity/agent/ActiveEntity.java b/src/main/java/com/c2kernel/entity/agent/ActiveEntity.java index 3d45e35..d20fc1e 100644 --- a/src/main/java/com/c2kernel/entity/agent/ActiveEntity.java +++ b/src/main/java/com/c2kernel/entity/agent/ActiveEntity.java @@ -28,7 +28,6 @@ import com.c2kernel.persistency.TransactionManager; import com.c2kernel.process.Gateway; import com.c2kernel.property.Property; import com.c2kernel.property.PropertyArrayList; -import com.c2kernel.utils.CastorXMLUtility; import com.c2kernel.utils.Logger; /************************************************************************** @@ -123,7 +122,7 @@ public class ActiveEntity extends AgentPOA { try { - props = (PropertyArrayList)CastorXMLUtility.unmarshall(propsString); + props = (PropertyArrayList)Gateway.getMarshaller().unmarshall(propsString); } catch( Exception ex ) { @@ -207,7 +206,7 @@ public class ActiveEntity extends AgentPOA { C2KLocalObject obj = mDatabase.get( mSystemKey, xpath, null ); - result = CastorXMLUtility.marshall(obj); + result = Gateway.getMarshaller().marshall(obj); } } @@ -236,7 +235,7 @@ public class ActiveEntity extends AgentPOA @Override public synchronized void refreshJobList(int sysKey, String stepPath, String newJobs) { try { - JobArrayList newJobList = (JobArrayList)CastorXMLUtility.unmarshall(newJobs); + JobArrayList newJobList = (JobArrayList)Gateway.getMarshaller().unmarshall(newJobs); // get our joblist if (currentJobs == null) -- cgit v1.2.3