Package org.kie.api.marshalling
Interface Marshaller
-
public interface Marshaller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MarshallingConfiguration
getMarshallingConfiguration()
void
marshall(java.io.OutputStream stream, KieSession ksession)
Marshalls the given KieSession into the provided OutputStreamKieSession
unmarshall(java.io.InputStream stream)
Creates KieSession using default KieSessionConfiguration and Environment.void
unmarshall(java.io.InputStream stream, KieSession ksession)
Unmarshall the stream into the KieSession.KieSession
unmarshall(java.io.InputStream stream, KieSessionConfiguration config, Environment environment)
Creates KieSession using the given KieSessionConfiguration and Environment.
-
-
-
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
-
getMarshallingConfiguration
MarshallingConfiguration getMarshallingConfiguration()
- Returns:
- the
MarshallingConfiguration
object for this marshaller.
-
-