Class PrimitiveConfigurator
java.lang.Object
io.jenkins.plugins.casc.impl.configurators.PrimitiveConfigurator
- All Implemented Interfaces:
- Configurator
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class PrimitiveConfigurator
extends Object
implements Configurator
- Author:
- Nicolas De Loof
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncheck(CNode config, ConfigurationContext context) Run the same logic asConfigurator.configure(CNode, ConfigurationContext)in dry-run mode.configure(CNode config, ConfigurationContext context) Configures/creates a Jenkins object based on a tree.describe()Determine the list of Attribute available for configuration of the managed component.describe(Object instance, ConfigurationContext context) Describe a component as a Configuration NodesCNodeto be exported as yaml.getConfigurators(ConfigurationContext context) Target type this configurator can handle.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jenkins.plugins.casc.ConfiguratorcanConfigure, describeStructure, getAttributes, getDisplayName, getImplementedAPI, getName, getNames
- 
Constructor Details- 
PrimitiveConfigurator
 
- 
- 
Method Details- 
getTargetDescription copied from interface:ConfiguratorTarget type this configurator can handle.- Specified by:
- getTargetin interface- Configurator
 
- 
describeDescription copied from interface:ConfiguratorDetermine the list of Attribute available for configuration of the managed component.- Specified by:
- describein interface- Configurator
- Returns:
- A set of Attributes that describes this object
 
- 
configure@NonNull public Object configure(CNode config, ConfigurationContext context) throws ConfiguratorException Description copied from interface:ConfiguratorConfigures/creates a Jenkins object based on a tree.- Specified by:
- configurein interface- Configurator
- Parameters:
- config- Map/List/primitive objects (think YAML) that represents the configuration from which a Jenkins object is configured.
- context- Fully configured Jenkins object used as the starting point for this configuration.
- Returns:
- Fully configured Jenkins object that results from this configuration. if no new objects got created, but some existing objects may have been modified, return updated target object.
- Throws:
- ConfiguratorException- if something went wrong, depends on the concrete implementation
 
- 
checkDescription copied from interface:ConfiguratorRun the same logic asConfigurator.configure(CNode, ConfigurationContext)in dry-run mode. Used to verify configuration is fine before being actually applied to a live jenkins controller.- Specified by:
- checkin interface- Configurator
- Parameters:
- config- Map/List/primitive objects (think YAML) that represents the configuration from which a Jenkins object is configured.
- context- Fully configured Jenkins object used as the starting point for this configuration.
- Throws:
- ConfiguratorException- on configuration error
 
- 
describeDescription copied from interface:ConfiguratorDescribe a component as a Configuration NodesCNodeto be exported as yaml. Only export attributes which are not set to default value.- Specified by:
- describein interface- Configurator
 
- 
getConfigurators- Specified by:
- getConfiguratorsin interface- Configurator
- Returns:
- list of Configurators to be considered so one can fully configure this component. Typically, configurator for an abstract extension point will return Configurators for available implementations.
 
 
-