com.michelin.cio.hudson.plugins.maskpasswords
Class MaskPasswordsBuildWrapper.ConverterImpl

java.lang.Object
  extended by 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 java.lang.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
MaskPasswordsBuildWrapper.ConverterImpl()
           
 
Method Summary
 boolean canConvert(java.lang.Class clazz)
           
 void marshal(java.lang.Object o, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext mc)
           
 java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext uc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaskPasswordsBuildWrapper.ConverterImpl

public MaskPasswordsBuildWrapper.ConverterImpl()
Method Detail

canConvert

public boolean canConvert(java.lang.Class clazz)
Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher

marshal

public void marshal(java.lang.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 java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                  com.thoughtworks.xstream.converters.UnmarshallingContext uc)
Specified by:
unmarshal in interface com.thoughtworks.xstream.converters.Converter


Copyright © 2011. All Rights Reserved.