Class IdentityPlaceholderResolverStrategy

java.lang.Object
org.drools.serialization.protobuf.marshalling.IdentityPlaceholderResolverStrategy
All Implemented Interfaces:
org.kie.api.marshalling.ObjectMarshallingStrategy

public class IdentityPlaceholderResolverStrategy extends Object implements org.kie.api.marshalling.ObjectMarshallingStrategy
  • Constructor Details

    • 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)
    • IdentityPlaceholderResolverStrategy

      public IdentityPlaceholderResolverStrategy(String name, org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor, Map<Integer,Object> ids)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.kie.api.marshalling.ObjectMarshallingStrategy
    • read

      Specified by:
      read in interface org.kie.api.marshalling.ObjectMarshallingStrategy
      Throws:
      IOException
      ClassNotFoundException
    • write

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

      public boolean accept(Object object)
      Specified by:
      accept in interface org.kie.api.marshalling.ObjectMarshallingStrategy
    • marshal

      public byte[] marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object)
      Specified by:
      marshal in interface org.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 interface org.kie.api.marshalling.ObjectMarshallingStrategy
    • createContext

      public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
      Specified by:
      createContext in interface org.kie.api.marshalling.ObjectMarshallingStrategy
    • getIds

      public Map<Integer,Object> getIds()
    • setIds

      public void setIds(Map<Integer,Object> ids)