Package org.drools.core.marshalling.impl
Class JavaSerializableResolverStrategy
- java.lang.Object
-
- org.drools.core.marshalling.impl.JavaSerializableResolverStrategy
-
- All Implemented Interfaces:
org.kie.api.marshalling.ObjectMarshallingStrategy
public class JavaSerializableResolverStrategy extends Object implements org.kie.api.marshalling.ObjectMarshallingStrategy
-
-
Constructor Summary
Constructors Constructor Description JavaSerializableResolverStrategy(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()
byte[]
marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object)
Object
read(ObjectInputStream os)
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
-
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)
- Specified by:
marshal
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
unmarshal
public Object unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream is, byte[] object, ClassLoader classloader)
- Specified by:
unmarshal
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
createContext
public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
- Specified by:
createContext
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
-