org.drools.persistence.jpa.marshaller
Class JPAPlaceholderResolverStrategy

java.lang.Object
  extended by org.drools.persistence.jpa.marshaller.JPAPlaceholderResolverStrategy
All Implemented Interfaces:
org.drools.marshalling.ObjectMarshallingStrategy

public class JPAPlaceholderResolverStrategy
extends Object
implements org.drools.marshalling.ObjectMarshallingStrategy


Constructor Summary
JPAPlaceholderResolverStrategy(org.drools.runtime.Environment env)
           
 
Method Summary
 boolean accept(Object object)
           
static Serializable getClassIdValue(Object o)
           
 byte[] marshal(ObjectOutputStream os, Object object)
           
 Object read(ObjectInputStream is)
           
 Object unmarshal(ObjectInputStream os, byte[] object, ClassLoader classloader)
           
 void write(ObjectOutputStream os, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAPlaceholderResolverStrategy

public JPAPlaceholderResolverStrategy(org.drools.runtime.Environment env)
Method Detail

accept

public boolean accept(Object object)
Specified by:
accept in interface org.drools.marshalling.ObjectMarshallingStrategy

write

public void write(ObjectOutputStream os,
                  Object object)
           throws IOException
Specified by:
write in interface org.drools.marshalling.ObjectMarshallingStrategy
Throws:
IOException

read

public Object read(ObjectInputStream is)
            throws IOException,
                   ClassNotFoundException
Specified by:
read in interface org.drools.marshalling.ObjectMarshallingStrategy
Throws:
IOException
ClassNotFoundException

marshal

public byte[] marshal(ObjectOutputStream os,
                      Object object)
               throws IOException
Specified by:
marshal in interface org.drools.marshalling.ObjectMarshallingStrategy
Throws:
IOException

unmarshal

public Object unmarshal(ObjectInputStream os,
                        byte[] object,
                        ClassLoader classloader)
                 throws IOException,
                        ClassNotFoundException
Specified by:
unmarshal in interface org.drools.marshalling.ObjectMarshallingStrategy
Throws:
IOException
ClassNotFoundException

getClassIdValue

public static Serializable getClassIdValue(Object o)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.