Package io.jenkins.plugins.casc.core
Class FreestyleItemConfigurator
java.lang.Object
io.jenkins.plugins.casc.BaseConfigurator<FreeStyleProject>
io.jenkins.plugins.casc.core.FreestyleItemConfigurator
- All Implemented Interfaces:
ExtensionPoint,Configurator<FreeStyleProject>,ItemConfigurator<FreeStyleProject>
@Extension
public class FreestyleItemConfigurator
extends BaseConfigurator<FreeStyleProject>
implements ItemConfigurator<FreeStyleProject>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jenkins.plugins.casc.BaseConfigurator
BaseConfigurator.TypePairNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfigure(String name, CNode config, ConfigurationContext context) describe()Determine the list of Attribute available for configuration of the managed component.getName()Get a configurator name.Target type this configurator can handle.protected FreeStyleProjectinstance(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, 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, describe, describeStructure, getAttributes, getConfigurators, getDisplayName, getImplementedAPI, getNames
-
Constructor Details
-
FreestyleItemConfigurator
public FreestyleItemConfigurator()
-
-
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<FreeStyleProject>- Specified by:
getNamein interfaceItemConfigurator<FreeStyleProject>- Returns:
- short name 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<FreeStyleProject>- Specified by:
getTargetin interfaceItemConfigurator<FreeStyleProject>
-
describe
Description copied from interface:ConfiguratorDetermine the list of Attribute available for configuration of the managed component.- Specified by:
describein interfaceConfigurator<FreeStyleProject>- Overrides:
describein classBaseConfigurator<FreeStyleProject>- Returns:
- A set of
Attributes that describes this object
-
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<FreeStyleProject>- 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)
-
configure
public FreeStyleProject configure(String name, CNode config, ConfigurationContext context) throws ConfiguratorException - Specified by:
configurein interfaceItemConfigurator<FreeStyleProject>- Throws:
ConfiguratorException
-