Class AbstractXStreamConverterAdapter
java.lang.Object
com.atlassian.bamboo.serialization.xstream.AbstractXStreamConverterAdapter
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter,com.thoughtworks.xstream.converters.ConverterMatcher
- Direct Known Subclasses:
AbstractHibernateCollectionConverter,ConcurrentHashMapConverter,FinalCollectionConverter,FinalHashMapConverter,FinalLinkedHashMapConverter
public abstract class AbstractXStreamConverterAdapter
extends Object
implements com.thoughtworks.xstream.converters.Converter
This class adapts XStream converters so that the mapper can be injected into them after
the converter is created.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractXStreamConverterAdapter(com.thoughtworks.xstream.mapper.Mapper mapper, Class<? extends com.thoughtworks.xstream.converters.Converter> converterDelegateClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidmarshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context) unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thoughtworks.xstream.converters.ConverterMatcher
canConvert
-
Constructor Details
-
AbstractXStreamConverterAdapter
protected AbstractXStreamConverterAdapter(com.thoughtworks.xstream.mapper.Mapper mapper, Class<? extends com.thoughtworks.xstream.converters.Converter> converterDelegateClass)
-
-
Method Details
-
marshal
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context) - Specified by:
marshalin interfacecom.thoughtworks.xstream.converters.Converter
-
unmarshal
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) - Specified by:
unmarshalin interfacecom.thoughtworks.xstream.converters.Converter
-