Package org.drools.core.marshalling.impl
Class IdentityPlaceholderResolverStrategy
- java.lang.Object
-
- org.drools.core.marshalling.impl.IdentityPlaceholderResolverStrategy
-
- All Implemented Interfaces:
org.kie.api.marshalling.ObjectMarshallingStrategy
public class IdentityPlaceholderResolverStrategy extends Object implements org.kie.api.marshalling.ObjectMarshallingStrategy
-
-
Constructor Summary
Constructors Constructor Description IdentityPlaceholderResolverStrategy(String name, org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor)IdentityPlaceholderResolverStrategy(String name, org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor, Map<Integer,Object> ids)IdentityPlaceholderResolverStrategy(org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor)IdentityPlaceholderResolverStrategy(org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor, Map<Integer,Object> ids)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(Object object)org.kie.api.marshalling.ObjectMarshallingStrategy.ContextcreateContext()Map<Integer,Object>getIds()StringgetName()byte[]marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object)Objectread(ObjectInputStream os)voidsetIds(Map<Integer,Object> ids)Objectunmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream is, byte[] object, ClassLoader classloader)voidwrite(ObjectOutputStream os, Object object)
-
-
-
Constructor Detail
-
IdentityPlaceholderResolverStrategy
public IdentityPlaceholderResolverStrategy(org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor)
-
IdentityPlaceholderResolverStrategy
public IdentityPlaceholderResolverStrategy(String name, org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor)
-
IdentityPlaceholderResolverStrategy
public IdentityPlaceholderResolverStrategy(org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor, Map<Integer,Object> ids)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
read
public Object read(ObjectInputStream os) throws IOException, ClassNotFoundException
- Specified by:
readin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy- Throws:
IOExceptionClassNotFoundException
-
write
public void write(ObjectOutputStream os, Object object) throws IOException
- Specified by:
writein interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy- Throws:
IOException
-
accept
public boolean accept(Object object)
- Specified by:
acceptin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
marshal
public byte[] marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object)- Specified by:
marshalin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
unmarshal
public Object unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream is, byte[] object, ClassLoader classloader)
- Specified by:
unmarshalin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
createContext
public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
- Specified by:
createContextin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
-