public static class BuildDiscarder.ConverterImpl extends Object implements com.thoughtworks.xstream.converters.Converter
Job.logRotator used to be typed as LogRotator,
so such configuration file ends up trying to unmarshal BuildDiscarder and
not its subtype.
This converter makes this work by unmarshalling a LogRotator.| Constructor and Description |
|---|
ConverterImpl(com.thoughtworks.xstream.mapper.Mapper m) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class type) |
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) |
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal in interface com.thoughtworks.xstream.converters.Converterpublic Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal in interface com.thoughtworks.xstream.converters.Converterpublic boolean canConvert(Class type)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcherCopyright © 2014. All rights reserved.