Package org.kie.api.marshalling
Interface Marshaller
-
public interface Marshaller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MarshallingConfigurationgetMarshallingConfiguration()voidmarshall(OutputStream stream, KieSession ksession)Marshalls the given KieSession into the provided OutputStreamKieSessionunmarshall(InputStream stream)Creates KieSession using default KieSessionConfiguration and Environment.voidunmarshall(InputStream stream, KieSession ksession)Unmarshall the stream into the KieSession.KieSessionunmarshall(InputStream stream, KieSessionConfiguration config, Environment environment)Creates KieSession using the given KieSessionConfiguration and Environment.
-
-
-
Method Detail
-
marshall
void marshall(OutputStream stream, KieSession ksession) throws IOException
Marshalls the given KieSession into the provided OutputStream- Parameters:
stream-ksession-- Throws:
IOException
-
unmarshall
KieSession unmarshall(InputStream stream) throws IOException, 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:
IOExceptionClassNotFoundException
-
unmarshall
KieSession unmarshall(InputStream stream, KieSessionConfiguration config, Environment environment) throws IOException, 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:
IOExceptionClassNotFoundException
-
unmarshall
void unmarshall(InputStream stream, KieSession ksession) throws IOException, ClassNotFoundException
Unmarshall the stream into the KieSession. All existing state in the session will be lost.- Parameters:
stream-ksession-- Throws:
IOExceptionClassNotFoundException
-
getMarshallingConfiguration
MarshallingConfiguration getMarshallingConfiguration()
- Returns:
- the
MarshallingConfigurationobject for this marshaller.
-
-