Class CustomizableXStreamFactory
java.lang.Object
com.atlassian.bamboo.persister.xstream.CustomizableXStreamFactory
- All Implemented Interfaces:
XStreamFactory
XStreamFactory
that can be customized with XStream components: mappers,
converters, initializers and aliases.- Since:
- v3.3
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
class
-
Constructor Summary
ConstructorDescriptionUse it for tests onlyCustomizableXStreamFactory
(@NotNull Iterable<MapperFactory> customMappers, @NotNull Iterable<ConverterFactory> customConverters, @NotNull Iterable<XStreamInitializer> customInitializers, @NotNull Map<String, Class<?>> customAliases) -
Method Summary
Modifier and TypeMethodDescription@NotNull com.thoughtworks.xstream.XStream
CreateXStream
backed by given classLoader and driver.@NotNull com.thoughtworks.xstream.XStream
Create default instance of XStream.@NotNull com.thoughtworks.xstream.XStream
createXStream
(ClassLoader classLoader) CreateXStream
backed by given classLoader.
-
Constructor Details
-
CustomizableXStreamFactory
public CustomizableXStreamFactory(@NotNull @NotNull Iterable<MapperFactory> customMappers, @NotNull @NotNull Iterable<ConverterFactory> customConverters, @NotNull @NotNull Iterable<XStreamInitializer> customInitializers, @NotNull @NotNull Map<String, Class<?>> customAliases) -
CustomizableXStreamFactory
public CustomizableXStreamFactory()Use it for tests only
-
-
Method Details
-
createXStream
@NotNull public @NotNull com.thoughtworks.xstream.XStream createXStream()Description copied from interface:XStreamFactory
Create default instance of XStream.- Specified by:
createXStream
in interfaceXStreamFactory
- Returns:
- new XStream instance
-
createXStream
Description copied from interface:XStreamFactory
CreateXStream
backed by given classLoader.- Specified by:
createXStream
in interfaceXStreamFactory
- Parameters:
classLoader
- class loader to use by the created XStream, ifnull
, the default classloader will be used- Returns:
- new XStream instance
-
createCompactXStream
@NotNull public @NotNull com.thoughtworks.xstream.XStream createCompactXStream()Description copied from interface:XStreamFactory
CreateXStream
backed by given classLoader and driver.- Specified by:
createCompactXStream
in interfaceXStreamFactory
- Returns:
- new XStream instance
- See Also:
-
HierarchicalStreamDriver
-