Package org.drools.core.marshalling.impl
Class SerializablePlaceholderResolverStrategy
- java.lang.Object
-
- org.drools.core.marshalling.impl.SerializablePlaceholderResolverStrategy
-
- All Implemented Interfaces:
org.kie.api.marshalling.ObjectMarshallingStrategy
public class SerializablePlaceholderResolverStrategy extends Object implements org.kie.api.marshalling.ObjectMarshallingStrategy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SerializablePlaceholderResolverStrategy.SerializablePlaceholderStrategyContext
-
Constructor Summary
Constructors Constructor Description SerializablePlaceholderResolverStrategy(org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(Object object)
org.kie.api.marshalling.ObjectMarshallingStrategy.Context
createContext()
int
getIndex()
byte[]
marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object)
Object
read(ObjectInputStream os)
void
setIndex(int index)
String
toString()
Object
unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream is, byte[] object, ClassLoader classloader)
void
write(ObjectOutputStream os, Object object)
-
-
-
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 interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
- Throws:
IOException
ClassNotFoundException
-
write
public void write(ObjectOutputStream os, Object object) throws IOException
- Specified by:
write
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
- Throws:
IOException
-
accept
public boolean accept(Object object)
- Specified by:
accept
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
marshal
public byte[] marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object) throws IOException
- Specified by:
marshal
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
- Throws:
IOException
-
unmarshal
public Object unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream is, byte[] object, ClassLoader classloader) throws IOException, ClassNotFoundException
- Specified by:
unmarshal
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
- Throws:
IOException
ClassNotFoundException
-
createContext
public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
- Specified by:
createContext
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
-