Package org.kie.server.api.marshalling
Interface Marshaller
-
- All Known Implementing Classes:
JaxbMarshaller
,JSONMarshaller
,XStreamMarshaller
public interface Marshaller
These Marshallers implementations must be thread-safe
-
-
Field Summary
Fields Modifier and Type Field Description static String
MARSHALLER_PARAMETER_STRICT
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
dispose()
ClassLoader
getClassLoader()
MarshallingFormat
getFormat()
String
marshall(Object input)
default String
marshall(Object input, Map<String,Object> parameters)
default byte[]
marshallAsBytes(Object input)
void
setClassLoader(ClassLoader classloader)
default <T> T
unmarshall(byte[] input, Class<T> type)
<T> T
unmarshall(String input, Class<T> type)
default <T> T
unmarshall(String input, Class<T> type, Map<String,Object> parameters)
-
-
-
Field Detail
-
MARSHALLER_PARAMETER_STRICT
static final String MARSHALLER_PARAMETER_STRICT
- See Also:
- Constant Field Values
-
-
Method Detail
-
dispose
void dispose()
-
getFormat
MarshallingFormat getFormat()
-
setClassLoader
void setClassLoader(ClassLoader classloader)
-
getClassLoader
ClassLoader getClassLoader()
-
marshallAsBytes
default byte[] marshallAsBytes(Object input)
-
unmarshall
default <T> T unmarshall(byte[] input, Class<T> type)
-
-