public class ModuleEnvironment
extends org.springframework.core.env.AbstractEnvironment
Environment
for a module, which restricts the values exposed to the
PropertySourcesPlaceholderConfigurer
living in the module context.
In particular, this prevents scenarios where e.g. the module would have ${username} in its definition, where
username is a valid module option name for which there is no current value (PS returns null
but there
exists say, an environment variable of the same name. In such a case, the module would pick up that value by mistake.
Constructor and Description |
---|
ModuleEnvironment(org.springframework.core.env.EnumerablePropertySource<?> moduleOptionsPropertySource,
org.springframework.core.env.ConfigurableEnvironment parent) |
acceptsProfiles, addActiveProfile, containsProperty, customizePropertySources, doGetActiveProfiles, doGetDefaultProfiles, getActiveProfiles, getConversionService, getDefaultProfiles, getProperty, getProperty, getProperty, getProperty, getPropertyAsClass, getPropertySources, getRequiredProperty, getRequiredProperty, getReservedDefaultProfiles, getSystemEnvironment, getSystemProperties, isProfileActive, merge, resolvePlaceholders, resolveRequiredPlaceholders, setActiveProfiles, setConversionService, setDefaultProfiles, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, suppressGetenvAccess, toString, validateProfile, validateRequiredProperties