|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.persister.xstream.DefaultXStreamManager
public class DefaultXStreamManager
Default implementation of XStreamManager
.
Nested Class Summary | |
---|---|
static class |
DefaultXStreamManager.PluginXStreams
Internal class that maintains mappings from plugins to corresponding XStreams |
Field Summary | |
---|---|
protected com.thoughtworks.xstream.XStream |
global
|
Constructor Summary | |
---|---|
DefaultXStreamManager(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.event.PluginEventManager pluginEventManager)
|
|
DefaultXStreamManager(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.event.PluginEventManager pluginEventManager,
XStreamFactory factory)
|
Method Summary | |
---|---|
java.lang.Object |
fromXML(java.lang.String xml)
Convert the xml into a java Object instance |
java.lang.Object |
fromXML(java.lang.String pluginKey,
java.lang.String serializedData)
Convert XML serializedData into an object in the context of plugin referred to by pluginKey. |
static DefaultXStreamManager |
getNonPluginAwareInstance()
A non-plugin aware instance that will always use the same underlying XStream instance with default class loader. |
java.lang.String |
toXML(java.lang.Object object)
Convert the java object into its XML form |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final com.thoughtworks.xstream.XStream global
Constructor Detail |
---|
public DefaultXStreamManager(@NotNull com.atlassian.plugin.PluginAccessor pluginAccessor, @Nullable com.atlassian.plugin.event.PluginEventManager pluginEventManager, @NotNull XStreamFactory factory)
public DefaultXStreamManager(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
Method Detail |
---|
public static DefaultXStreamManager getNonPluginAwareInstance()
DefaultXStreamManager
.public java.lang.Object fromXML(java.lang.String xml)
XStreamManager
fromXML
in interface XStreamManager
xml
- The xml representation of the object
public java.lang.Object fromXML(java.lang.String pluginKey, java.lang.String serializedData)
XStreamManager
fromXML
in interface XStreamManager
pluginKey
- plugin key defining the plugin context of the marshalled classserializedData
- XML data
public java.lang.String toXML(java.lang.Object object)
XStreamManager
toXML
in interface XStreamManager
object
- The object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |