Class CustomizableXStreamFactory

java.lang.Object
com.atlassian.bamboo.persister.xstream.CustomizableXStreamFactory
All Implemented Interfaces:
XStreamFactory

public class CustomizableXStreamFactory extends Object implements XStreamFactory
XStreamFactory that can be customized with XStream components: mappers, converters, initializers and aliases.
Since:
v3.3
  • Constructor Details

  • 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 interface XStreamFactory
      Returns:
      new XStream instance
    • createXStream

      @NotNull public @NotNull com.thoughtworks.xstream.XStream createXStream(ClassLoader classLoader)
      Description copied from interface: XStreamFactory
      Create XStream backed by given classLoader.
      Specified by:
      createXStream in interface XStreamFactory
      Parameters:
      classLoader - class loader to use by the created XStream, if null, the default classloader will be used
      Returns:
      new XStream instance
    • createCompactXStream

      @NotNull public @NotNull com.thoughtworks.xstream.XStream createCompactXStream()
      Description copied from interface: XStreamFactory
      Create XStream backed by given classLoader and driver.
      Specified by:
      createCompactXStream in interface XStreamFactory
      Returns:
      new XStream instance
      See Also:
      • HierarchicalStreamDriver