Class JavaSerializableResolverStrategy

  • All Implemented Interfaces:
    org.kie.api.marshalling.ObjectMarshallingStrategy

    public class JavaSerializableResolverStrategy
    extends java.lang.Object
    implements org.kie.api.marshalling.ObjectMarshallingStrategy
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.kie.api.marshalling.ObjectMarshallingStrategy

        org.kie.api.marshalling.ObjectMarshallingStrategy.Context
    • 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​(java.lang.Object object)  
      org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()  
      byte[] marshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, java.io.ObjectOutputStream os, java.lang.Object object)  
      java.lang.Object read​(java.io.ObjectInputStream os)  
      java.lang.String toString()  
      java.lang.Object unmarshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, java.io.ObjectInputStream is, byte[] object, java.lang.ClassLoader classloader)  
      void write​(java.io.ObjectOutputStream os, java.lang.Object object)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.kie.api.marshalling.ObjectMarshallingStrategy

        getName
    • Constructor Detail

      • JavaSerializableResolverStrategy

        public JavaSerializableResolverStrategy​(org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor)
    • Method Detail

      • read

        public java.lang.Object read​(java.io.ObjectInputStream os)
                              throws java.io.IOException,
                                     java.lang.ClassNotFoundException
        Specified by:
        read in interface org.kie.api.marshalling.ObjectMarshallingStrategy
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • write

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

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

        public byte[] marshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
                              java.io.ObjectOutputStream os,
                              java.lang.Object object)
        Specified by:
        marshal in interface org.kie.api.marshalling.ObjectMarshallingStrategy
      • unmarshal

        public java.lang.Object unmarshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
                                          java.io.ObjectInputStream is,
                                          byte[] object,
                                          java.lang.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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object