Package io.jenkins.plugins.casc.impl
Class DefaultConfiguratorRegistry
java.lang.Object
io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry
- All Implemented Interfaces:
ConfiguratorRegistry
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class DefaultConfiguratorRegistry
extends Object
implements ConfiguratorRegistry
- Author:
- Nicolas De Loof
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionLooks for a configurator for exact type.lookupOrFail
(Type type) Looks for a configurator for exact type.lookupRootElement
(String name) Retrieve aRootElementConfigurator
by it's yaml element (key) name.
-
Constructor Details
-
DefaultConfiguratorRegistry
public DefaultConfiguratorRegistry()
-
-
Method Details
-
lookupRootElement
Description copied from interface:ConfiguratorRegistry
Retrieve aRootElementConfigurator
by it's yaml element (key) name.- Specified by:
lookupRootElement
in interfaceConfiguratorRegistry
- Returns:
null
if we don't know anyRootElementConfigurator
for requested name
-
lookupOrFail
Looks for a configurator for exact type.- Specified by:
lookupOrFail
in interfaceConfiguratorRegistry
- Parameters:
type
- Type- Returns:
- Configurator
- Throws:
ConfiguratorException
- Configurator is not found
-
lookup
Looks for a configurator for exact type.- Specified by:
lookup
in interfaceConfiguratorRegistry
- Parameters:
type
- Type- Returns:
- Configurator or
null
if it is not found
-