Package io.jenkins.plugins.casc.core
Class UpdateCenterConfigurator
java.lang.Object
io.jenkins.plugins.casc.BaseConfigurator<UpdateCenter>
io.jenkins.plugins.casc.core.UpdateCenterConfigurator
- All Implemented Interfaces:
 Configurator<UpdateCenter>
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class UpdateCenterConfigurator
extends BaseConfigurator<UpdateCenter>
TODO would  not be required if UpdateCenter had a DataBoundConstructor
- 
Nested Class Summary
Nested classes/interfaces inherited from class io.jenkins.plugins.casc.BaseConfigurator
BaseConfigurator.TypePair - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigure(Mapping config, UpdateCenter instance, boolean dryrun, ConfigurationContext context) Run configuration process on the target instanceSet<Attribute<UpdateCenter,?>> describe()Determine the list of Attribute available for configuration of the managed component.Target type this configurator can handle.protected UpdateCenterinstance(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, 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, getName, getNames 
- 
Constructor Details
- 
UpdateCenterConfigurator
public UpdateCenterConfigurator() 
 - 
 - 
Method Details
- 
getTarget
Description copied from interface:ConfiguratorTarget type this configurator can handle. - 
configure
protected void configure(Mapping config, UpdateCenter instance, boolean dryrun, ConfigurationContext context) throws ConfiguratorException Description copied from class:BaseConfiguratorRun configuration process on the target instance- Overrides:
 configurein classBaseConfigurator<UpdateCenter>- Parameters:
 config- configuration to apply. Can be partial ifBaseConfigurator.instance(Mapping, ConfigurationContext)did already used some entriesinstance- target instance to configuredryrun- only check configuration is valid regarding target component. Don't actually apply changes to jenkins controller instancecontext- Fully configured Jenkins object used as the starting point for this configuration.- Throws:
 ConfiguratorException- something went wrong...
 - 
instance
protected UpdateCenter instance(Mapping mapping, ConfigurationContext context) throws ConfiguratorException 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<UpdateCenter>- 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:ConfiguratorDetermine the list of Attribute available for configuration of the managed component.- Specified by:
 describein interfaceConfigurator<UpdateCenter>- Overrides:
 describein classBaseConfigurator<UpdateCenter>- Returns:
 - A set of 
Attributes that describes this object 
 
 -