Class DescriptorConfigurator
java.lang.Object
io.jenkins.plugins.casc.BaseConfigurator<Descriptor>
io.jenkins.plugins.casc.impl.configurators.DescriptorConfigurator
- All Implemented Interfaces:
Configurator<Descriptor>,RootElementConfigurator<Descriptor>
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class DescriptorConfigurator
extends BaseConfigurator<Descriptor>
implements RootElementConfigurator<Descriptor>
Define a Configurator for a Descriptor
- 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 TypeMethodDescriptiongetName()Get a configurator name.getNames()Get all possible configurator namesTarget type this configurator can handle.getTargetComponent(ConfigurationContext context) Retrieve the target component managed by this RootElementConfiguratorprotected Descriptorinstance(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, check, configure, describe, describe, describeStructure, getAttributes, getConfigurators, getDisplayName, getImplementedAPIMethods inherited from interface io.jenkins.plugins.casc.RootElementConfigurator
isRootElement
-
Constructor Details
-
DescriptorConfigurator
-
-
Method Details
-
getName
Description copied from interface:ConfiguratorGet a configurator name. This should return the default name for the configurator, used for exporting yaml seeConfigurator.getNames()for all possible names which will be considered when configuring.- Specified by:
getNamein interfaceConfigurator<Descriptor>- Returns:
- short name for this component when used in a configuration.yaml file
-
getNames
Description copied from interface:ConfiguratorGet all possible configurator names- Specified by:
getNamesin interfaceConfigurator<Descriptor>- Returns:
- a list of all possible short names for this component when used in a configuration.yaml file
-
getTarget
Description copied from interface:ConfiguratorTarget type this configurator can handle.- Specified by:
getTargetin interfaceConfigurator<Descriptor>
-
getTargetComponent
Description copied from interface:RootElementConfiguratorRetrieve the target component managed by this RootElementConfigurator- Specified by:
getTargetComponentin interfaceRootElementConfigurator<Descriptor>- Returns:
-
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<Descriptor>- 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)
-