Interface Marshaller


  • public interface Marshaller
    • Method Detail

      • marshall

        void marshall​(java.io.OutputStream stream,
                      KieSession ksession)
               throws java.io.IOException
        Marshalls the given KieSession into the provided OutputStream
        Parameters:
        stream -
        ksession -
        Throws:
        java.io.IOException
      • unmarshall

        KieSession unmarshall​(java.io.InputStream stream)
                       throws java.io.IOException,
                              java.lang.ClassNotFoundException
        Creates KieSession using default KieSessionConfiguration and Environment. It will then unmarshall the stream into the session. Either KieSessionConfiguration or Environment may be null and it will use the default.
        Parameters:
        stream -
        Returns:
        unmarshlled KieSession
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • unmarshall

        KieSession unmarshall​(java.io.InputStream stream,
                              KieSessionConfiguration config,
                              Environment environment)
                       throws java.io.IOException,
                              java.lang.ClassNotFoundException
        Creates KieSession using the given KieSessionConfiguration and Environment. It will then unmarshall the stream into the session. Either KieSessionConfiguration or Environment may be null and it will use the default.
        Parameters:
        stream -
        config -
        environment -
        Returns:
        unmarshalled KieSession
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • unmarshall

        void unmarshall​(java.io.InputStream stream,
                        KieSession ksession)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
        Unmarshall the stream into the KieSession. All existing state in the session will be lost.
        Parameters:
        stream -
        ksession -
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException