public class CustomizableXStreamFactory extends Object implements XStreamFactory
XStreamFactory
that can be customized with XStream components: mappers,
converters, initializers and aliases.Constructor and Description |
---|
CustomizableXStreamFactory()
Use it for tests only
|
CustomizableXStreamFactory(Iterable<MapperFactory> customMappers,
Iterable<ConverterFactory> customConverters,
Iterable<XStreamInitializer> customInitializers,
Map<String,Class<?>> customAliases) |
Modifier and Type | Method and Description |
---|---|
com.thoughtworks.xstream.XStream |
createCompactXStream()
Create
XStream backed by given classLoader and driver. |
com.thoughtworks.xstream.XStream |
createXStream()
Create default instance of XStream.
|
com.thoughtworks.xstream.XStream |
createXStream(ClassLoader classLoader)
Create
XStream backed by given classLoader. |
public CustomizableXStreamFactory(@NotNull Iterable<MapperFactory> customMappers, @NotNull Iterable<ConverterFactory> customConverters, @NotNull Iterable<XStreamInitializer> customInitializers, @NotNull Map<String,Class<?>> customAliases)
public CustomizableXStreamFactory()
@NotNull public com.thoughtworks.xstream.XStream createXStream()
XStreamFactory
createXStream
in interface XStreamFactory
@NotNull public com.thoughtworks.xstream.XStream createXStream(ClassLoader classLoader)
XStreamFactory
XStream
backed by given classLoader.createXStream
in interface XStreamFactory
classLoader
- class loader to use by the created XStream, if null
, the default classloader will
be used@NotNull public com.thoughtworks.xstream.XStream createCompactXStream()
XStreamFactory
XStream
backed by given classLoader and driver.createCompactXStream
in interface XStreamFactory
HierarchicalStreamDriver
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.