org.drools.marshalling.impl
Class SerializablePlaceholderResolverStrategy

java.lang.Object
  extended by org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy
All Implemented Interfaces:
org.drools.marshalling.ObjectMarshallingStrategy

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


Nested Class Summary
protected static class SerializablePlaceholderResolverStrategy.SerializablePlaceholderStrategyContext
           
 
Nested classes/interfaces inherited from interface org.drools.marshalling.ObjectMarshallingStrategy
org.drools.marshalling.ObjectMarshallingStrategy.Context
 
Constructor Summary
SerializablePlaceholderResolverStrategy(org.drools.marshalling.ObjectMarshallingStrategyAcceptor acceptor)
           
 
Method Summary
 boolean accept(Object object)
           
 org.drools.marshalling.ObjectMarshallingStrategy.Context createContext()
           
 int getIndex()
           
 byte[] marshal(org.drools.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object)
           
 Object read(ObjectInputStream os)
           
 void setIndex(int index)
           
 Object unmarshal(org.drools.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream is, 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

SerializablePlaceholderResolverStrategy

public SerializablePlaceholderResolverStrategy(org.drools.marshalling.ObjectMarshallingStrategyAcceptor acceptor)
Method Detail

getIndex

public int getIndex()

setIndex

public void setIndex(int index)

read

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

write

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

accept

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

marshal

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

unmarshal

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

createContext

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


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