org.hudsonci.utils.marshal.xref
Class XReferenceStoreConverter

java.lang.Object
  extended by com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
      extended by org.hudsonci.utils.marshal.xref.XReferenceConverter
          extended by org.hudsonci.utils.marshal.xref.XReferenceStoreConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

public class XReferenceStoreConverter
extends XReferenceConverter

Converter for XReference types using XReferenceStore strategy.

Since:
2.1.0
Author:
Jason Dillon

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hudsonci.utils.marshal.xref.XReferenceConverter
XReferenceConverter.HolderSupport, XReferenceConverter.HolderType, XReferenceConverter.SoftUnmarshalHolder, XReferenceConverter.UnmarshalHolder
 
Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.DuplicateFieldException
 
Field Summary
 
Fields inherited from class org.hudsonci.utils.marshal.xref.XReferenceConverter
holderType
 
Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
mapper, reflectionProvider, serializationMethodInvoker
 
Constructor Summary
XReferenceStoreConverter(XReferenceStore store, com.thoughtworks.xstream.mapper.Mapper mapper, com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflection)
           
 
Method Summary
protected  Object load(XReference ref)
          Provides reference loading behavior.
protected  void store(XReference ref)
          Provides reference storing behavior.
 
Methods inherited from class org.hudsonci.utils.marshal.xref.XReferenceConverter
canConvert, createStoredHolder, createUnmarshalHolder, doMarshal, doUnmarshal, getHolderType, setHolderType
 
Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
instantiateNewInstance, marshal, marshallField, shouldUnmarshalTransientFields, unmarshal, unmarshallField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XReferenceStoreConverter

public XReferenceStoreConverter(XReferenceStore store,
                                com.thoughtworks.xstream.mapper.Mapper mapper,
                                com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflection)
Method Detail

store

protected void store(XReference ref)
              throws IOException
Description copied from class: XReferenceConverter
Provides reference storing behavior.

Specified by:
store in class XReferenceConverter
Throws:
IOException

load

protected Object load(XReference ref)
               throws IOException
Description copied from class: XReferenceConverter
Provides reference loading behavior.

Specified by:
load in class XReferenceConverter
Throws:
IOException


Copyright © 2004-2011 Hudson. All Rights Reserved.