Interface XStreamFactory

All Known Implementing Classes:
CustomizableXStreamFactory, SecureXStreamFactory

public interface XStreamFactory
Creates custom instances of XStream.
Since:
v3.3
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull com.thoughtworks.xstream.XStream
    Create XStream 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)
    Create XStream backed by given classLoader.
  • Method Details

    • createXStream

      @NotNull @NotNull com.thoughtworks.xstream.XStream createXStream()
      Create default instance of XStream.
      Returns:
      new XStream instance
    • createXStream

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

      @NotNull @NotNull com.thoughtworks.xstream.XStream createCompactXStream()
      Create XStream backed by given classLoader and driver.
      Returns:
      new XStream instance
      See Also:
      • HierarchicalStreamDriver