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 Constructor Description UpdateCenterConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure(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.Class<UpdateCenter>
getTarget()
Target type this configurator can handle.protected UpdateCenter
instance(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, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.jenkins.plugins.casc.Configurator
canConfigure, describe, describeStructure, getAttributes, getConfigurators, getDisplayName, getImplementedAPI, getName, getNames
-
-
-
-
Method Detail
-
getTarget
public Class<UpdateCenter> getTarget()
Description copied from interface:Configurator
Target type this configurator can handle.
-
configure
protected void configure(Mapping config, UpdateCenter instance, boolean dryrun, ConfigurationContext context) throws ConfiguratorException
Description copied from class:BaseConfigurator
Run configuration process on the target instance- Overrides:
configure
in 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 instance- Throws:
ConfiguratorException
- something went wrong...
-
instance
protected UpdateCenter instance(Mapping mapping, ConfigurationContext context) throws ConfiguratorException
Description copied from class:BaseConfigurator
Build or identify the target component this configurator has to handle based on the provided configuration node.- Specified by:
instance
in classBaseConfigurator<UpdateCenter>
- Parameters:
mapping
- configuration for target component. Implementation may consume some entries to create a fresh new instance.- Returns:
- instance to be configured, but not yet fully configured, see
BaseConfigurator.configure(Mapping, Object, boolean, ConfigurationContext)
- Throws:
ConfiguratorException
-
describe
@NonNull public Set<Attribute<UpdateCenter,?>> describe()
Description copied from interface:Configurator
Determine the list of Attribute available for configuration of the managed component.- Specified by:
describe
in interfaceConfigurator<UpdateCenter>
- Overrides:
describe
in classBaseConfigurator<UpdateCenter>
- Returns:
- A set of
Attribute
s that describes this object
-
-