public class JSONMarshaller extends Object implements Marshaller
| Modifier and Type | Class and Description |
|---|---|
static class |
JSONMarshaller.PassThruSerializer
Simple utility Serializer which can be used to override replacement of JaxbUnknownAdapter with WrappingObjectSerializer
|
| Modifier and Type | Field and Description |
|---|---|
protected Set<Class<?>> |
classesSet |
protected ClassLoader |
classLoader |
protected DateFormat |
dateFormat |
protected com.fasterxml.jackson.databind.ObjectMapper |
deserializeObjectMapper |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
| Constructor and Description |
|---|
JSONMarshaller(Set<Class<?>> classes,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildMarshaller(Set<Class<?>> classes,
ClassLoader classLoader) |
protected void |
configureMarshaller(Set<Class<?>> classes,
ClassLoader classLoader) |
void |
dispose() |
ClassLoader |
getClassLoader() |
MarshallingFormat |
getFormat() |
String |
marshall(Object objectInput) |
protected List<com.fasterxml.jackson.databind.jsontype.NamedType> |
prepareCustomClasses(Set<Class<?>> classes) |
void |
setClassLoader(ClassLoader classLoader) |
<T> T |
unmarshall(String serializedInput,
Class<T> type) |
protected Object |
unwrap(Object data) |
protected Object |
wrap(Object data) |
protected ClassLoader classLoader
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper deserializeObjectMapper
protected DateFormat dateFormat
public JSONMarshaller(Set<Class<?>> classes, ClassLoader classLoader)
protected void buildMarshaller(Set<Class<?>> classes, ClassLoader classLoader)
protected void configureMarshaller(Set<Class<?>> classes, ClassLoader classLoader)
protected List<com.fasterxml.jackson.databind.jsontype.NamedType> prepareCustomClasses(Set<Class<?>> classes)
public String marshall(Object objectInput)
marshall in interface Marshallerpublic <T> T unmarshall(String serializedInput, Class<T> type)
unmarshall in interface Marshallerpublic void dispose()
dispose in interface Marshallerpublic MarshallingFormat getFormat()
getFormat in interface Marshallerpublic void setClassLoader(ClassLoader classLoader)
setClassLoader in interface Marshallerpublic ClassLoader getClassLoader()
getClassLoader in interface MarshallerCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.