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

    Modifier and Type
    Method
    Description
    void
    marshal(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, wait

    Methods 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:
      marshal in interface com.thoughtworks.xstream.converters.Converter
    • unmarshal

      public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
      Specified by:
      unmarshal in interface com.thoughtworks.xstream.converters.Converter