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
Constructors Modifier Constructor Description protected
AbstractXStreamConverterAdapter(com.thoughtworks.xstream.mapper.Mapper mapper, Class<? extends com.thoughtworks.xstream.converters.Converter> converterDelegateClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
Object
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
-
-
-
Constructor Detail
-
AbstractXStreamConverterAdapter
protected AbstractXStreamConverterAdapter(com.thoughtworks.xstream.mapper.Mapper mapper, Class<? extends com.thoughtworks.xstream.converters.Converter> converterDelegateClass)
-
-
Method Detail
-
marshal
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
- Specified by:
marshal
in interfacecom.thoughtworks.xstream.converters.Converter
-
unmarshal
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
- Specified by:
unmarshal
in interfacecom.thoughtworks.xstream.converters.Converter
-
-