Package io.jenkins.plugins.casc
Class ConfigurationContext
java.lang.Object
io.jenkins.plugins.casc.ConfigurationContext
- All Implemented Interfaces:
ConfiguratorRegistry
- Author:
- Nicolas De Loof
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConfigurationContext
(ConfiguratorRegistry registry) ConfigurationContext
(ConfiguratorRegistry registry, String mergeStrategy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ConfigurationContext.Listener listener) void
io.jenkins.plugins.casc.ConfigurationContext.Deprecation
io.jenkins.plugins.casc.ConfigurationContext.Restriction
Get theSecretSource
s used to substitute${XX}
test used as yaml values with sensitive data.io.jenkins.plugins.casc.ConfigurationContext.Unknown
io.jenkins.plugins.casc.ConfigurationContext.Version
int
int
<T> Configurator<T>
Retrieve aConfigurator
for target type.<T> Configurator<T>
lookupOrFail
(Type type) null-safe flavour ofConfiguratorRegistry.lookup(Type)
.lookupRootElement
(String name) Retrieve aRootElementConfigurator
by it's yaml element (key) name.void
setDeprecated
(io.jenkins.plugins.casc.ConfigurationContext.Deprecation deprecation) void
void
setRestricted
(io.jenkins.plugins.casc.ConfigurationContext.Restriction restriction) void
setUnknown
(io.jenkins.plugins.casc.ConfigurationContext.Unknown unknown) void
setVersion
(io.jenkins.plugins.casc.ConfigurationContext.Version version) void
-
Field Details
-
CASC_YAML_MAX_ALIASES_ENV
- See Also:
-
CASC_YAML_MAX_ALIASES_PROPERTY
- See Also:
-
CASC_YAML_CODE_POINT_LIMIT_ENV
- See Also:
-
CASC_YAML_CODE_POINT_LIMIT_PROPERTY
- See Also:
-
CASC_MERGE_STRATEGY_ENV
- See Also:
-
CASC_MERGE_STRATEGY_PROPERTY
- See Also:
-
-
Constructor Details
-
ConfigurationContext
-
ConfigurationContext
-
-
Method Details
-
getSecretSourceResolver
-
addListener
-
clearListeners
public void clearListeners() -
warning
-
getDeprecated
public io.jenkins.plugins.casc.ConfigurationContext.Deprecation getDeprecated() -
getRestricted
public io.jenkins.plugins.casc.ConfigurationContext.Restriction getRestricted() -
getUnknown
public io.jenkins.plugins.casc.ConfigurationContext.Unknown getUnknown() -
setDeprecated
public void setDeprecated(io.jenkins.plugins.casc.ConfigurationContext.Deprecation deprecation) -
setRestricted
public void setRestricted(io.jenkins.plugins.casc.ConfigurationContext.Restriction restriction) -
setUnknown
public void setUnknown(io.jenkins.plugins.casc.ConfigurationContext.Unknown unknown) -
getMergeStrategy
-
setMode
-
getYamlMaxAliasesForCollections
public int getYamlMaxAliasesForCollections() -
getYamlCodePointLimit
public int getYamlCodePointLimit() -
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
Description copied from interface:ConfiguratorRegistry
null-safe flavour ofConfiguratorRegistry.lookup(Type)
.- Specified by:
lookupOrFail
in interfaceConfiguratorRegistry
- Throws:
ConfiguratorException
- if we don't know anyRootElementConfigurator
for requested type
-
lookup
Description copied from interface:ConfiguratorRegistry
Retrieve aConfigurator
for target type.- Specified by:
lookup
in interfaceConfiguratorRegistry
- Returns:
null
if we don't know anyRootElementConfigurator
for requested type
-
setVersion
public void setVersion(io.jenkins.plugins.casc.ConfigurationContext.Version version) -
getVersion
public io.jenkins.plugins.casc.ConfigurationContext.Version getVersion() -
getSecretSources
Get theSecretSource
s used to substitute${XX}
test used as yaml values with sensitive data.
-