com.atlassian.bamboo.persister.xstream
Interface XStreamFactory

All Known Implementing Classes:
CustomizableXStreamFactory

public interface XStreamFactory

Creates custom instances of XStream.

Since:
v3.3

Method Summary
 com.thoughtworks.xstream.XStream createCompactXStream()
          Create XStream backed by given classLoader and driver.
 com.thoughtworks.xstream.XStream createXStream()
          Create default instance of XStream.
 com.thoughtworks.xstream.XStream createXStream(java.lang.ClassLoader classLoader)
          Create XStream backed by given classLoader.
 

Method Detail

createXStream

@NotNull
com.thoughtworks.xstream.XStream createXStream()
Create default instance of XStream.

Returns:
new XStream instance

createXStream

@NotNull
com.thoughtworks.xstream.XStream createXStream(@Nullable
                                                       java.lang.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
com.thoughtworks.xstream.XStream createCompactXStream()
Create XStream backed by given classLoader and driver.

Parameters:
classLoader - class loader to use by the created XStream, if null, the default classloader will be used
driver - driver to use, if null, the default driver will be used
Returns:
new XStream instance
See Also:
HierarchicalStreamDriver


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.