Package org.kie.server.api.marshalling
Interface Marshaller
-
- All Known Implementing Classes:
JaxbMarshaller,JSONMarshaller,XStreamMarshaller
public interface MarshallerThese Marshallers implementations must be thread-safe
-
-
Field Summary
Fields Modifier and Type Field Description static StringMARSHALLER_PARAMETER_STRICT
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddispose()ClassLoadergetClassLoader()MarshallingFormatgetFormat()Stringmarshall(Object input)default Stringmarshall(Object input, Map<String,Object> parameters)default byte[]marshallAsBytes(Object input)voidsetClassLoader(ClassLoader classloader)default <T> Tunmarshall(byte[] input, Class<T> type)<T> Tunmarshall(String input, Class<T> type)default <T> Tunmarshall(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)
-
-