public class AdapterXStreamMarshallerFactory extends AdapterMarshallerFactory
AdapterMarshallerFactory.MarshallingOutput
Modifier and Type | Field and Description |
---|---|
protected static AdapterXStreamMarshallerFactory |
instance |
static boolean |
XSTREAM_DBG
Whether not extended debugging is emitted; defaults to false unless explicitly set via either the system property
interlok.xstream.debug or adp.xtream.debug . |
static boolean |
XSTREAM_JDK_STAX_ONLY
Whether or not we force XStream to use the JVMs internal Stax implementation; this defaults to
'true' unless explicitly set via the system property
interlok.xstream.jdk.stax . |
Modifier and Type | Method and Description |
---|---|
protected com.thoughtworks.xstream.XStream |
configureXStream(com.thoughtworks.xstream.XStream xstream,
AdapterMarshallerFactory.MarshallingOutput outputMode)
Configures the given XStream object.
It is expected that the Factory has been initialised and that all of the configuration settings have been processed and stored already. |
AdaptrisMarshaller |
createMarshaller() |
AdaptrisMarshaller |
createMarshaller(AdapterMarshallerFactory.MarshallingOutput outputType) |
com.thoughtworks.xstream.XStream |
createXStream()
Public method that returns a configure XStream object instance read for use
|
com.thoughtworks.xstream.XStream |
createXStream(AdapterMarshallerFactory.MarshallingOutput outputType)
Public method that returns a configure XStream object instance read for use configured for the given form of output.
|
protected com.thoughtworks.xstream.XStream |
createXStreamInstance(AdapterMarshallerFactory.MarshallingOutput outputMode)
Creates the XStream object instance
|
static AdapterXStreamMarshallerFactory |
getInstance() |
protected static void |
readXStreamConfigProperties()
Reads in and stores all of the xstream configuration items from various resources
|
createMarshaller
public static final transient boolean XSTREAM_DBG
interlok.xstream.debug
or adp.xtream.debug
.public static final transient boolean XSTREAM_JDK_STAX_ONLY
interlok.xstream.jdk.stax
.protected static AdapterXStreamMarshallerFactory instance
public static AdapterXStreamMarshallerFactory getInstance()
public AdaptrisMarshaller createMarshaller() throws CoreException
createMarshaller
in class AdapterMarshallerFactory
CoreException
public AdaptrisMarshaller createMarshaller(AdapterMarshallerFactory.MarshallingOutput outputType) throws CoreException
createMarshaller
in class AdapterMarshallerFactory
CoreException
protected static void readXStreamConfigProperties()
protected com.thoughtworks.xstream.XStream createXStreamInstance(AdapterMarshallerFactory.MarshallingOutput outputMode)
outputMode
- - The type of output to generate ie JSON/XMLpublic com.thoughtworks.xstream.XStream createXStream()
public com.thoughtworks.xstream.XStream createXStream(AdapterMarshallerFactory.MarshallingOutput outputType)
outputType
- - Type of output to configure XStream for ie JSON or XMLprotected com.thoughtworks.xstream.XStream configureXStream(com.thoughtworks.xstream.XStream xstream, AdapterMarshallerFactory.MarshallingOutput outputMode)
xstream
- - XStream instance to configureoutputMode
- - The output type to configure XStream for