Drools :: Persistence :: JPA 6.0.0.CR3

org.drools.persistence.jpa.marshaller
Class JPAPlaceholderResolverStrategy

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

public class JPAPlaceholderResolverStrategy
extends Object
implements org.kie.api.marshalling.ObjectMarshallingStrategy


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.kie.api.marshalling.ObjectMarshallingStrategy
org.kie.api.marshalling.ObjectMarshallingStrategy.Context
 
Constructor Summary
JPAPlaceholderResolverStrategy(org.kie.api.runtime.Environment env)
           
 
Method Summary
 boolean accept(Object object)
           
 org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
           
static Serializable getClassIdValue(Object o)
           
 byte[] marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object)
           
 Object read(ObjectInputStream is)
           
 Object unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream ois, 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.kie.api.runtime.Environment env)
Method Detail

accept

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

write

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

read

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

marshal

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

unmarshal

public Object unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
                        ObjectInputStream ois,
                        byte[] object,
                        ClassLoader classloader)
                 throws IOException,
                        ClassNotFoundException
Specified by:
unmarshal in interface org.kie.api.marshalling.ObjectMarshallingStrategy
Throws:
IOException
ClassNotFoundException

createContext

public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
Specified by:
createContext in interface org.kie.api.marshalling.ObjectMarshallingStrategy

getClassIdValue

public static Serializable getClassIdValue(Object o)

Drools :: Persistence :: JPA 6.0.0.CR3

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