public class EncryptableEnvironment extends Object implements org.springframework.core.env.ConfigurableEnvironment
| Constructor and Description |
|---|
EncryptableEnvironment(org.springframework.core.env.ConfigurableEnvironment delegate) |
EncryptableEnvironment(org.springframework.core.env.ConfigurableEnvironment delegate,
EncryptablePropertyDetector detector) |
EncryptableEnvironment(org.springframework.core.env.ConfigurableEnvironment delegate,
EncryptablePropertyResolver resolver) |
EncryptableEnvironment(org.springframework.core.env.ConfigurableEnvironment delegate,
org.jasypt.encryption.StringEncryptor encryptor) |
EncryptableEnvironment(org.springframework.core.env.ConfigurableEnvironment delegate,
org.jasypt.encryption.StringEncryptor encryptor,
EncryptablePropertyDetector detector) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsProfiles(String... profiles) |
void |
addActiveProfile(String profile) |
boolean |
containsProperty(String key) |
String[] |
getActiveProfiles() |
org.springframework.core.convert.support.ConfigurableConversionService |
getConversionService() |
String[] |
getDefaultProfiles() |
String |
getProperty(String key) |
<T> T |
getProperty(String key,
Class<T> targetType) |
<T> T |
getProperty(String key,
Class<T> targetType,
T defaultValue) |
String |
getProperty(String key,
String defaultValue) |
<T> Class<T> |
getPropertyAsClass(String key,
Class<T> targetType) |
org.springframework.core.env.MutablePropertySources |
getPropertySources() |
String |
getRequiredProperty(String key) |
<T> T |
getRequiredProperty(String key,
Class<T> targetType) |
Map<String,Object> |
getSystemEnvironment() |
Map<String,Object> |
getSystemProperties() |
void |
merge(org.springframework.core.env.ConfigurableEnvironment parent) |
String |
resolvePlaceholders(String text) |
String |
resolveRequiredPlaceholders(String text) |
void |
setActiveProfiles(String... profiles) |
void |
setConversionService(org.springframework.core.convert.support.ConfigurableConversionService conversionService) |
void |
setDefaultProfiles(String... profiles) |
void |
setIgnoreUnresolvableNestedPlaceholders(boolean ignoreUnresolvableNestedPlaceholders) |
void |
setPlaceholderPrefix(String placeholderPrefix) |
void |
setPlaceholderSuffix(String placeholderSuffix) |
void |
setRequiredProperties(String... requiredProperties) |
void |
setValueSeparator(String valueSeparator) |
void |
validateRequiredProperties() |
public EncryptableEnvironment(org.springframework.core.env.ConfigurableEnvironment delegate)
public EncryptableEnvironment(org.springframework.core.env.ConfigurableEnvironment delegate,
EncryptablePropertyDetector detector)
public EncryptableEnvironment(org.springframework.core.env.ConfigurableEnvironment delegate,
org.jasypt.encryption.StringEncryptor encryptor)
public EncryptableEnvironment(org.springframework.core.env.ConfigurableEnvironment delegate,
org.jasypt.encryption.StringEncryptor encryptor,
EncryptablePropertyDetector detector)
public EncryptableEnvironment(org.springframework.core.env.ConfigurableEnvironment delegate,
EncryptablePropertyResolver resolver)
public void addActiveProfile(String profile)
addActiveProfile in interface org.springframework.core.env.ConfigurableEnvironmentpublic org.springframework.core.env.MutablePropertySources getPropertySources()
getPropertySources in interface org.springframework.core.env.ConfigurableEnvironmentpublic Map<String,Object> getSystemEnvironment()
getSystemEnvironment in interface org.springframework.core.env.ConfigurableEnvironmentpublic Map<String,Object> getSystemProperties()
getSystemProperties in interface org.springframework.core.env.ConfigurableEnvironmentpublic void merge(org.springframework.core.env.ConfigurableEnvironment parent)
merge in interface org.springframework.core.env.ConfigurableEnvironmentpublic org.springframework.core.convert.support.ConfigurableConversionService getConversionService()
getConversionService in interface org.springframework.core.env.ConfigurablePropertyResolverpublic void setConversionService(org.springframework.core.convert.support.ConfigurableConversionService conversionService)
setConversionService in interface org.springframework.core.env.ConfigurablePropertyResolverpublic void setPlaceholderPrefix(String placeholderPrefix)
setPlaceholderPrefix in interface org.springframework.core.env.ConfigurablePropertyResolverpublic void setPlaceholderSuffix(String placeholderSuffix)
setPlaceholderSuffix in interface org.springframework.core.env.ConfigurablePropertyResolverpublic void setValueSeparator(String valueSeparator)
setValueSeparator in interface org.springframework.core.env.ConfigurablePropertyResolverpublic void setIgnoreUnresolvableNestedPlaceholders(boolean ignoreUnresolvableNestedPlaceholders)
setIgnoreUnresolvableNestedPlaceholders in interface org.springframework.core.env.ConfigurablePropertyResolverpublic void setRequiredProperties(String... requiredProperties)
setRequiredProperties in interface org.springframework.core.env.ConfigurablePropertyResolverpublic void validateRequiredProperties()
throws org.springframework.core.env.MissingRequiredPropertiesException
validateRequiredProperties in interface org.springframework.core.env.ConfigurablePropertyResolverorg.springframework.core.env.MissingRequiredPropertiesExceptionpublic String[] getActiveProfiles()
getActiveProfiles in interface org.springframework.core.env.Environmentpublic void setActiveProfiles(String... profiles)
setActiveProfiles in interface org.springframework.core.env.ConfigurableEnvironmentpublic String[] getDefaultProfiles()
getDefaultProfiles in interface org.springframework.core.env.Environmentpublic void setDefaultProfiles(String... profiles)
setDefaultProfiles in interface org.springframework.core.env.ConfigurableEnvironmentpublic boolean acceptsProfiles(String... profiles)
acceptsProfiles in interface org.springframework.core.env.Environmentpublic boolean containsProperty(String key)
containsProperty in interface org.springframework.core.env.PropertyResolverpublic String getProperty(String key)
getProperty in interface org.springframework.core.env.PropertyResolverpublic String getProperty(String key, String defaultValue)
getProperty in interface org.springframework.core.env.PropertyResolverpublic <T> T getProperty(String key, Class<T> targetType)
getProperty in interface org.springframework.core.env.PropertyResolverpublic <T> T getProperty(String key, Class<T> targetType, T defaultValue)
getProperty in interface org.springframework.core.env.PropertyResolverpublic <T> Class<T> getPropertyAsClass(String key, Class<T> targetType)
getPropertyAsClass in interface org.springframework.core.env.PropertyResolverpublic String getRequiredProperty(String key) throws IllegalStateException
getRequiredProperty in interface org.springframework.core.env.PropertyResolverIllegalStateExceptionpublic <T> T getRequiredProperty(String key, Class<T> targetType) throws IllegalStateException
getRequiredProperty in interface org.springframework.core.env.PropertyResolverIllegalStateExceptionpublic String resolvePlaceholders(String text)
resolvePlaceholders in interface org.springframework.core.env.PropertyResolverpublic String resolveRequiredPlaceholders(String text) throws IllegalArgumentException
resolveRequiredPlaceholders in interface org.springframework.core.env.PropertyResolverIllegalArgumentExceptionCopyright © 2017. All rights reserved.