com.atlassian.bamboo.persister.xstream
Interface XStreamManager

All Known Implementing Classes:
DefaultXStreamManager

public interface XStreamManager

Common XStream persistence behaviour.

This component also maintains XStreams capable of deserializing XMLs containing classes specific to plugins. To deserialize such XMLs, use DefaultXStreamManager.fromXML(String, String) and pass your plugin's key.


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.
 java.lang.String toXML(java.lang.Object object)
          Convert the java object into its XML form
 

Method Detail

fromXML

java.lang.Object fromXML(java.lang.String xml)
Convert the xml into a java Object instance

Parameters:
xml - The xml representation of the object
Returns:
The object

fromXML

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.

Parameters:
pluginKey - plugin key defining the plugin context of the marshalled class
serializedData - XML data
Returns:
instance of the object represented by the serializedData

toXML

java.lang.String toXML(java.lang.Object object)
Convert the java object into its XML form

Parameters:
object - The object
Returns:
XML representation of the object


Copyright © 2012 Atlassian. All Rights Reserved.