com.atlassian.bamboo.serialization.xstream
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 Summary |
protected |
AbstractHibernateCollectionConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
java.lang.Class<? extends com.thoughtworks.xstream.converters.Converter> converterClass)
|
Method Summary |
boolean |
canConvert(java.lang.Class type)
|
protected abstract boolean |
isSupportedType(java.lang.Class type)
|
void |
marshal(java.lang.Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractHibernateCollectionConverter
protected AbstractHibernateCollectionConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
java.lang.Class<? extends com.thoughtworks.xstream.converters.Converter> converterClass)
canConvert
public boolean canConvert(java.lang.Class type)
marshal
public void marshal(java.lang.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(java.lang.Class type)
Copyright © 2012 Atlassian. All Rights Reserved.