Class SecureXStreamFactory
java.lang.Object
com.atlassian.bamboo.persister.xstream.SecureXStreamFactory
- All Implemented Interfaces:
XStreamFactory
Factory which returns XStream with given Permission
-
Constructor Summary
ConstructorDescriptionSecureXStreamFactory
(XStreamFactory xStreamFactory, com.thoughtworks.xstream.security.TypePermission securityProvider) SecureXStreamFactory
(XStreamFactory xStreamFactory, com.thoughtworks.xstream.security.TypePermission securityProvider, List<ConverterFactory> customConverters) -
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
(@Nullable ClassLoader classLoader) CreateXStream
backed by given classLoader.
-
Constructor Details
-
SecureXStreamFactory
public SecureXStreamFactory(XStreamFactory xStreamFactory, com.thoughtworks.xstream.security.TypePermission securityProvider) -
SecureXStreamFactory
public SecureXStreamFactory(XStreamFactory xStreamFactory, com.thoughtworks.xstream.security.TypePermission securityProvider, List<ConverterFactory> customConverters)
-
-
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
@NotNull public @NotNull com.thoughtworks.xstream.XStream createXStream(@Nullable @Nullable ClassLoader classLoader) 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
-