Class MaskPasswordsBuildWrapper.ConverterImpl
java.lang.Object
com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper.ConverterImpl
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter
,com.thoughtworks.xstream.converters.ConverterMatcher
- Enclosing class:
- MaskPasswordsBuildWrapper
public static final class MaskPasswordsBuildWrapper.ConverterImpl
extends Object
implements com.thoughtworks.xstream.converters.Converter
We need this converter to handle marshalling/unmarshalling of the build
wrapper data: Relying on the default mechanism doesn't make it (because
Secret
doesn't have the DataBoundConstructor
annotation).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class clazz) void
marshal
(Object o, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext mc) unmarshal
(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext uc)
-
Constructor Details
-
ConverterImpl
public ConverterImpl()
-
-
Method Details
-
canConvert
- Specified by:
canConvert
in interfacecom.thoughtworks.xstream.converters.ConverterMatcher
-
marshal
public void marshal(Object o, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext mc) - Specified by:
marshal
in interfacecom.thoughtworks.xstream.converters.Converter
-
unmarshal
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext uc) - Specified by:
unmarshal
in interfacecom.thoughtworks.xstream.converters.Converter
-