Class 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) instead
    API 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 Detail

      • XStreamManager

        public XStreamManager​(Map aliases)
        Deprecated.
      • XStreamManager

        @Deprecated
        public XStreamManager​(Map<String,​String> aliases,
                              ClassLoader classLoader)
        Deprecated.
        since 7.10.0. Use XStreamManager(Map aliases, 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(Map aliases, 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 interface ConfluenceXStreamManager
        Parameters:
        classLoader - classLoader to use for serialization/deserialization in XStream
        Returns:
        ConfluenceXStream based on classLoader