Class AbstractHibernateCollectionConverter

java.lang.Object
com.atlassian.bamboo.serialization.xstream.AbstractXStreamConverterAdapter
com.atlassian.bamboo.serialization.xstream.AbstractHibernateCollectionConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
Direct Known Subclasses:
HibernateCollectionConverter, HibernateMapConverter, HibernateSortedMapConverter, HibernateSortedSetConverter

public abstract class AbstractHibernateCollectionConverter extends AbstractXStreamConverterAdapter
Ensures that only initialised collections will be serialised
  • Constructor Details

    • AbstractHibernateCollectionConverter

      protected AbstractHibernateCollectionConverter(com.thoughtworks.xstream.mapper.Mapper mapper, Class<? extends com.thoughtworks.xstream.converters.Converter> converterClass)
  • Method Details

    • canConvert

      public boolean canConvert(Class type)
    • 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
      Overrides:
      marshal in class AbstractXStreamConverterAdapter
    • isSupportedType

      protected abstract boolean isSupportedType(@NotNull @NotNull Class type)