Class ExtensionConfigurator<T>
java.lang.Object
io.jenkins.plugins.casc.BaseConfigurator<T>
io.jenkins.plugins.casc.impl.configurators.ExtensionConfigurator<T>
- All Implemented Interfaces:
Configurator<T>
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class ExtensionConfigurator<T>
extends BaseConfigurator<T>
A generic
Configurator for Extension singletons- Author:
- Nicolas De Loof
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jenkins.plugins.casc.BaseConfigurator
BaseConfigurator.TypePair -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe(T instance, ConfigurationContext context) Describe a component as a Configuration NodesCNodeto be exported as yaml.Target type this configurator can handle.protected Tinstance(Mapping mapping, ConfigurationContext context) Build or identify the target component this configurator has to handle based on the provided configuration node.Methods inherited from class io.jenkins.plugins.casc.BaseConfigurator
check, compare, configure, configure, createAttribute, describe, equals, exclusions, handleUnknown, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jenkins.plugins.casc.Configurator
canConfigure, describeStructure, getAttributes, getConfigurators, getDisplayName, getImplementedAPI, getName, getNames
-
Constructor Details
-
ExtensionConfigurator
-
-
Method Details
-
getTarget
Description copied from interface:ConfiguratorTarget type this configurator can handle. -
instance
Description copied from class:BaseConfiguratorBuild or identify the target component this configurator has to handle based on the provided configuration node.- Specified by:
instancein classBaseConfigurator<T>- Parameters:
mapping- configuration for target component. Implementation may consume some entries to create a fresh new instance.context- Fully configured Jenkins object used as the starting point for this configuration.- Returns:
- instance to be configured, but not yet fully configured, see
BaseConfigurator.configure(Mapping, Object, boolean, ConfigurationContext) - Throws:
ConfiguratorException- something went wrong...
-
describe
Description copied from interface:ConfiguratorDescribe a component as a Configuration NodesCNodeto be exported as yaml. Only export attributes which are not set to default value.- Throws:
Exception
-