Package io.jenkins.plugins.casc
Interface ConfiguratorRegistry
- All Known Implementing Classes:
ConfigurationContext
,DefaultConfiguratorRegistry
public interface ConfiguratorRegistry
A Registry to allow
Configurator
s retrieval.- Author:
- Nicolas De Loof
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfiguratorRegistry
get()
Retrieve default implementation from Jenkins<T> Configurator<T>
Retrieve aConfigurator
for target type.<T> Configurator<T>
lookupOrFail
(Type type) null-safe flavour oflookup(Type)
.lookupRootElement
(String name) Retrieve aRootElementConfigurator
by it's yaml element (key) name.
-
Method Details
-
lookupRootElement
Retrieve aRootElementConfigurator
by it's yaml element (key) name.- Parameters:
name
-- Returns:
null
if we don't know anyRootElementConfigurator
for requested name
-
lookup
Retrieve aConfigurator
for target type.- Parameters:
type
-- Returns:
null
if we don't know anyRootElementConfigurator
for requested type
-
lookupOrFail
null-safe flavour oflookup(Type)
.- Parameters:
type
-- Throws:
ConfiguratorException
- if we don't know anyRootElementConfigurator
for requested type
-
get
Retrieve default implementation from Jenkins
-