Interface XStreamFactory
- All Known Implementing Classes:
CustomizableXStreamFactory
,SecureXStreamFactory
public interface XStreamFactory
Creates custom instances of
XStream
.- Since:
- v3.3
-
Method Summary
Modifier and TypeMethodDescription@NotNull com.thoughtworks.xstream.XStream
CreateXStream
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) CreateXStream
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) CreateXStream
backed by given classLoader.- Parameters:
classLoader
- class loader to use by the created XStream, ifnull
, the default classloader will be used- Returns:
- new XStream instance
-
createCompactXStream
@NotNull @NotNull com.thoughtworks.xstream.XStream createCompactXStream()CreateXStream
backed by given classLoader and driver.- Returns:
- new XStream instance
- See Also:
-
HierarchicalStreamDriver
-