com.atlassian.bamboo.persister.xstream
Class BuildStateConverter

java.lang.Object
  extended by com.atlassian.bamboo.persister.xstream.BuildStateConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

public class BuildStateConverter
extends java.lang.Object
implements com.thoughtworks.xstream.converters.Converter

Provided for backward compatibility - alows reading old (BuildState as class not Enum) xml files All new build results are stored in new format


Constructor Summary
BuildStateConverter()
           
 
Method Summary
 boolean canConvert(java.lang.Class aClass)
           
 void marshal(java.lang.Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
           
 java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader hierarchicalStreamReader, com.thoughtworks.xstream.converters.UnmarshallingContext unmarshallingContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildStateConverter

public BuildStateConverter()
Method Detail

canConvert

public boolean canConvert(java.lang.Class aClass)
Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher

unmarshal

public java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader hierarchicalStreamReader,
                                  com.thoughtworks.xstream.converters.UnmarshallingContext unmarshallingContext)
Specified by:
unmarshal in interface com.thoughtworks.xstream.converters.Converter

marshal

public void marshal(java.lang.Object source,
                    com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                    com.thoughtworks.xstream.converters.MarshallingContext context)
Specified by:
marshal in interface com.thoughtworks.xstream.converters.Converter


Copyright © 2012 Atlassian. All Rights Reserved.