com.atlassian.bamboo.persister.xstream
Class SecondsDateConverter

java.lang.Object
  extended by com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
      extended by com.atlassian.bamboo.persister.xstream.SecondsDateConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter

public class SecondsDateConverter
extends com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter

This class is a temp bug fix for persisting dates in xstream

This was written to fix a bug in Xstream in that it ignored seconds. Although fixed in XStream, we still use it to so we can load old versions of the build.


Constructor Summary
SecondsDateConverter()
           
 
Method Summary
 boolean canConvert(java.lang.Class aClass)
          Inform XStream that we're reponsible for converting dates.
 java.lang.Object fromString(java.lang.String s)
           
 java.lang.String toString(java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecondsDateConverter

public SecondsDateConverter()
Method Detail

canConvert

public boolean canConvert(java.lang.Class aClass)
Inform XStream that we're reponsible for converting dates.

Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
Specified by:
canConvert in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter

fromString

public java.lang.Object fromString(java.lang.String s)
Specified by:
fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter
Specified by:
fromString in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter

toString

public java.lang.String toString(java.lang.Object object)
Specified by:
toString in interface com.thoughtworks.xstream.converters.SingleValueConverter
Overrides:
toString in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter


Copyright © 2010 Atlassian. All Rights Reserved.