Class XStreamManager
- java.lang.Object
-
- com.atlassian.confluence.setup.xstream.XStreamManager
-
- All Implemented Interfaces:
ConfluenceXStreamManager
- Direct Known Subclasses:
DefaultConfluenceXStreamManager
@Deprecated public class XStreamManager extends Object implements ConfluenceXStreamManager
Deprecated.since 7.10.0 Use ConfluenceXStreamManager's bean(DefaultConfluenceXStreamManager) insteadAPI point to get standard instance of Confluence's XStream. XStream provided from this class ensures backward compatibility since 1.1.1 XStream storage format. As a practice, data migration should be done in plugins to make sure data is always in latest XStream format.
-
-
Constructor Summary
Constructors Constructor Description XStreamManager(Map aliases)
Deprecated.XStreamManager(Map<String,String> aliases, ClassLoader classLoader)
Deprecated.since 7.10.0.XStreamManager(Map<String,String> aliases, ClassLoader classLoader, XStreamSecurityConfigurator securityConfigurator)
Deprecated.XStreamManager(Map<String,String> aliases, Map<com.thoughtworks.xstream.converters.Converter,Integer> converters, ClassLoader classLoader)
Deprecated.since 7.10.0.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConfluenceXStream
getConfluenceXStream()
Deprecated.Provides confluence's wrapped XStream instance.ConfluenceXStream
getPluginXStream(ClassLoader classLoader)
Deprecated.Allows to use plugin OSGi classloaders and avoid ClassCastException in case of plugin re-installations.com.thoughtworks.xstream.XStream
getXstream()
Deprecated.void
resetXStream()
Deprecated.Allows resetting of XStream to clear its introspection cache and reconfigures security.
-
-
-
Constructor Detail
-
XStreamManager
public XStreamManager(Map aliases)
Deprecated.
-
XStreamManager
public XStreamManager(Map<String,String> aliases, ClassLoader classLoader, XStreamSecurityConfigurator securityConfigurator)
Deprecated.
-
XStreamManager
@Deprecated public XStreamManager(Map<String,String> aliases, ClassLoader classLoader)
Deprecated.since 7.10.0. Use XStreamManager(Mapaliases, ClassLoader classLoader, XStreamSecurityConfigurator securityConfigurator) instead. - Parameters:
aliases
-classLoader
-
-
XStreamManager
@Deprecated public XStreamManager(Map<String,String> aliases, Map<com.thoughtworks.xstream.converters.Converter,Integer> converters, ClassLoader classLoader)
Deprecated.since 7.10.0. Use XStreamManager(Mapaliases, ClassLoader classLoader, XStreamSecurityConfigurator securityConfigurator) instead. - Parameters:
aliases
-classLoader
-
-
-
Method Detail
-
getXstream
public com.thoughtworks.xstream.XStream getXstream()
Deprecated.
-
getPluginXStream
public ConfluenceXStream getPluginXStream(ClassLoader classLoader)
Deprecated.Description copied from interface:ConfluenceXStreamManager
Allows to use plugin OSGi classloaders and avoid ClassCastException in case of plugin re-installations.- Specified by:
getPluginXStream
in interfaceConfluenceXStreamManager
- Parameters:
classLoader
- classLoader to use for serialization/deserialization in XStream- Returns:
- ConfluenceXStream based on classLoader
-
getConfluenceXStream
public ConfluenceXStream getConfluenceXStream()
Deprecated.Description copied from interface:ConfluenceXStreamManager
Provides confluence's wrapped XStream instance. It is responsible to ensure backward compatibility and be used in Bandana Manager/third-party plugins.- Specified by:
getConfluenceXStream
in interfaceConfluenceXStreamManager
- Returns:
-
resetXStream
public void resetXStream()
Deprecated.Description copied from interface:ConfluenceXStreamManager
Allows resetting of XStream to clear its introspection cache and reconfigures security.- Specified by:
resetXStream
in interfaceConfluenceXStreamManager
-
-