summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/entity/agent/ActiveEntity.java
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2012-07-06 11:00:24 +0200
committerAndrew Branson <andrew.branson@cern.ch>2012-07-06 11:00:24 +0200
commit24314dc1699c7e73048fa24e33729f1aa1ec0e86 (patch)
treec97af82997783b860c36f4410973b23caff0d42e /src/main/java/com/c2kernel/entity/agent/ActiveEntity.java
parentcc79e98c4763affba4fa2e17dfe5a412f9de66c3 (diff)
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.
Diffstat (limited to 'src/main/java/com/c2kernel/entity/agent/ActiveEntity.java')
-rw-r--r--src/main/java/com/c2kernel/entity/agent/ActiveEntity.java7
1 files changed, 3 insertions, 4 deletions
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)