Class SepiaRoutingKeyProviderConfigurator
- java.lang.Object
-
- io.jenkins.plugins.casc.BaseConfigurator<SepiaRoutingKeyProvider>
-
- com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.routingkeys.SepiaRoutingKeyProviderConfigurator
-
- All Implemented Interfaces:
io.jenkins.plugins.casc.Configurator<SepiaRoutingKeyProvider>
@Extension(optional=true) public class SepiaRoutingKeyProviderConfigurator extends io.jenkins.plugins.casc.BaseConfigurator<SepiaRoutingKeyProvider>
AConfigurator
implementation that takes care of CasC serialization/deserialization ofSepiaRoutingKeyProvider
objects. CasC tries very hard to not serialize any default values or empty objects, so unless you've set the optional Tag field to a non-empty value it won't serialize the SepiaRoutingKeyProvider object at all, causing us to lose information about which class was chosen as the routing key provider. This configurator works around this by always adding a dummy key/value pair during serialization.
-
-
Constructor Summary
Constructors Constructor Description SepiaRoutingKeyProviderConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConfigure(Class clazz)
io.jenkins.plugins.casc.model.CNode
describe(SepiaRoutingKeyProvider instance, io.jenkins.plugins.casc.ConfigurationContext context)
List<io.jenkins.plugins.casc.Configurator<SepiaRoutingKeyProvider>>
getConfigurators(io.jenkins.plugins.casc.ConfigurationContext context)
Class<SepiaRoutingKeyProvider>
getTarget()
protected SepiaRoutingKeyProvider
instance(io.jenkins.plugins.casc.model.Mapping mapping, io.jenkins.plugins.casc.ConfigurationContext context)
-
Methods inherited from class io.jenkins.plugins.casc.BaseConfigurator
check, compare, configure, configure, createAttribute, describe, equals, exclusions, handleUnknown, hashCode
-
-
-
-
Method Detail
-
instance
protected SepiaRoutingKeyProvider instance(io.jenkins.plugins.casc.model.Mapping mapping, io.jenkins.plugins.casc.ConfigurationContext context) throws io.jenkins.plugins.casc.ConfiguratorException
- Specified by:
instance
in classio.jenkins.plugins.casc.BaseConfigurator<SepiaRoutingKeyProvider>
- Throws:
io.jenkins.plugins.casc.ConfiguratorException
-
canConfigure
public boolean canConfigure(Class clazz)
-
describe
@CheckForNull public io.jenkins.plugins.casc.model.CNode describe(SepiaRoutingKeyProvider instance, io.jenkins.plugins.casc.ConfigurationContext context) throws Exception
- Throws:
Exception
-
getTarget
public Class<SepiaRoutingKeyProvider> getTarget()
-
getConfigurators
@NonNull public List<io.jenkins.plugins.casc.Configurator<SepiaRoutingKeyProvider>> getConfigurators(io.jenkins.plugins.casc.ConfigurationContext context)
-
-