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 Details

    • ConverterImpl

      public ConverterImpl()
  • Method Details

    • canConvert

      public boolean canConvert(Class clazz)
      Specified by:
      canConvert in interface com.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 interface com.thoughtworks.xstream.converters.Converter
    • unmarshal

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