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