public class SerializerObjectMarshallingStrategy extends Object implements org.kie.api.marshalling.ObjectMarshallingStrategy
| Constructor and Description |
|---|
SerializerObjectMarshallingStrategy(org.switchyard.serial.Serializer serializer)
Constructs a new SerializerObjectMarshallingStrategy with the specified Serializer.
|
| Modifier and Type | Method and 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) |
Object |
unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
ObjectInputStream is,
byte[] object,
ClassLoader classloader) |
void |
write(ObjectOutputStream os,
Object object) |
public SerializerObjectMarshallingStrategy(org.switchyard.serial.Serializer serializer)
serializer - the specified Serializerpublic boolean accept(Object object)
accept in interface org.kie.api.marshalling.ObjectMarshallingStrategypublic void write(ObjectOutputStream os, Object object) throws IOException
write in interface org.kie.api.marshalling.ObjectMarshallingStrategyIOExceptionpublic Object read(ObjectInputStream os) throws IOException, ClassNotFoundException
read in interface org.kie.api.marshalling.ObjectMarshallingStrategyIOExceptionClassNotFoundExceptionpublic byte[] marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
ObjectOutputStream os,
Object object)
throws IOException
marshal in interface org.kie.api.marshalling.ObjectMarshallingStrategyIOExceptionpublic Object unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream is, byte[] object, ClassLoader classloader) throws IOException, ClassNotFoundException
unmarshal in interface org.kie.api.marshalling.ObjectMarshallingStrategyIOExceptionClassNotFoundExceptionpublic org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
createContext in interface org.kie.api.marshalling.ObjectMarshallingStrategyCopyright © 2013–2017 JBoss by Red Hat. All rights reserved.