Class XStreamMarshaller
- java.lang.Object
-
- org.kie.server.api.marshalling.xstream.XStreamMarshaller
-
- All Implemented Interfaces:
Marshaller
public class XStreamMarshaller extends Object implements Marshaller
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classXStreamMarshaller.CustomElementIgnore
-
Field Summary
Fields Modifier and Type Field Description protected ClassLoaderclassLoaderprotected Map<String,Class<?>>classNamesprotected com.thoughtworks.xstream.XStreamxstreamstatic StringXSTREAM_IGNORE_UNKNOWN-
Fields inherited from interface org.kie.server.api.marshalling.Marshaller
MARSHALLER_PARAMETER_STRICT
-
-
Constructor Summary
Constructors Constructor Description XStreamMarshaller(Set<Class<?>> classes, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildMarshaller(Set<Class<?>> classes, ClassLoader classLoader)protected voidconfigureMarshaller(Set<Class<?>> classes, ClassLoader classLoader)voiddispose()ClassLoadergetClassLoader()MarshallingFormatgetFormat()com.thoughtworks.xstream.XStreamgetXstream()Stringmarshall(Object objectInput)voidsetClassLoader(ClassLoader classLoader)StringtoString()<T> Tunmarshall(String input, Class<T> type)<T> Tunmarshall(String input, Class<T> type, Map<String,Object> parameters)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.kie.server.api.marshalling.Marshaller
marshall, marshallAsBytes, unmarshall
-
-
-
-
Field Detail
-
XSTREAM_IGNORE_UNKNOWN
public static final String XSTREAM_IGNORE_UNKNOWN
- See Also:
- Constant Field Values
-
xstream
protected com.thoughtworks.xstream.XStream xstream
-
classLoader
protected ClassLoader classLoader
-
-
Constructor Detail
-
XStreamMarshaller
public XStreamMarshaller(Set<Class<?>> classes, ClassLoader classLoader)
-
-
Method Detail
-
buildMarshaller
protected void buildMarshaller(Set<Class<?>> classes, ClassLoader classLoader)
-
configureMarshaller
protected void configureMarshaller(Set<Class<?>> classes, ClassLoader classLoader)
-
marshall
public String marshall(Object objectInput)
- Specified by:
marshallin interfaceMarshaller
-
unmarshall
public <T> T unmarshall(String input, Class<T> type)
- Specified by:
unmarshallin interfaceMarshaller
-
unmarshall
public <T> T unmarshall(String input, Class<T> type, Map<String,Object> parameters)
- Specified by:
unmarshallin interfaceMarshaller
-
dispose
public void dispose()
- Specified by:
disposein interfaceMarshaller
-
getFormat
public MarshallingFormat getFormat()
- Specified by:
getFormatin interfaceMarshaller
-
setClassLoader
public void setClassLoader(ClassLoader classLoader)
- Specified by:
setClassLoaderin interfaceMarshaller
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfaceMarshaller
-
getXstream
public com.thoughtworks.xstream.XStream getXstream()
-
-