public class JaxbMarshaller extends Object implements Marshaller
| Modifier and Type | Field and Description |
|---|---|
protected ClassLoader |
classLoader |
protected JAXBContext |
jaxbContext |
static Class<?>[] |
KIE_SERVER_JAXB_CLASSES |
| Constructor and Description |
|---|
JaxbMarshaller(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() |
protected Marshaller |
getMarshaller() |
protected Unmarshaller |
getUnmarshaller() |
String |
marshall(Object input) |
void |
setClassLoader(ClassLoader classLoader) |
<T> T |
unmarshall(String input,
Class<T> type) |
public static final Class<?>[] KIE_SERVER_JAXB_CLASSES
protected JAXBContext jaxbContext
protected ClassLoader classLoader
public JaxbMarshaller(Set<Class<?>> classes, ClassLoader classLoader)
protected void buildMarshaller(Set<Class<?>> classes, ClassLoader classLoader)
protected void configureMarshaller(Set<Class<?>> classes, ClassLoader classLoader)
public String marshall(Object input)
marshall in interface Marshallerpublic <T> T unmarshall(String input, Class<T> type)
unmarshall in interface Marshallerpublic void dispose()
dispose in interface Marshallerpublic MarshallingFormat getFormat()
getFormat in interface Marshallerprotected Marshaller getMarshaller() throws JAXBException
JAXBExceptionprotected Unmarshaller getUnmarshaller() throws JAXBException
JAXBExceptionpublic void setClassLoader(ClassLoader classLoader)
setClassLoader in interface Marshallerpublic ClassLoader getClassLoader()
getClassLoader in interface MarshallerCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.