|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
ch.elca.el4j.env.beans.EnvPropertyPlaceholderConfigurer
public class EnvPropertyPlaceholderConfigurer
Specific property placeholder configurer for the EL4J environment.
| Field Summary | |
|---|---|
static String |
ENV_PLACEHOLDER_PROPERTIES_LOCATION
The correct env location. |
protected ApplicationContext |
m_applicationContext
Is the used application context. |
protected PropertyEncryptionUtil |
m_util
This handles encryption. |
static String |
OLD_ENV_PROPERTIES_LOCATION
The deprecated env location. |
protected static org.slf4j.Logger |
s_logger
This logger is used to print out some global debugging info. |
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport |
|---|
logger, XML_FILE_EXTENSION |
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
EnvPropertyPlaceholderConfigurer()
|
|
| Method Summary | |
|---|---|
protected String |
convertPropertyValue(String originalValue)
Decrypts values read from the env-*.properties files. |
void |
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
Sets the location of the env placeholder properties file. |
void |
setApplicationContext(ApplicationContext applicationContext)
|
void |
setCryptorFile(String file)
|
void |
setLocation(Resource location)
NOT ALLOWED TO USE! |
void |
setLocations(Resource[] locations)
NOT ALLOWED TO USE! |
void |
setNoEncryption()
This is meant to be used as a bean property to turn off encryption in an internal setting. |
void |
setPasswordSource(PasswordSource source)
Set a true custom password. |
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
|---|
parseStringValue, processProperties, resolvePlaceholder, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName, setValueSeparator |
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer |
|---|
convertProperties, convertProperty, getOrder, setOrder |
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport |
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setProperties, setPropertiesArray, setPropertiesPersister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ENV_PLACEHOLDER_PROPERTIES_LOCATION
public static final String OLD_ENV_PROPERTIES_LOCATION
protected static final org.slf4j.Logger s_logger
protected ApplicationContext m_applicationContext
protected PropertyEncryptionUtil m_util
| Constructor Detail |
|---|
public EnvPropertyPlaceholderConfigurer()
| Method Detail |
|---|
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
throws BeansException
postProcessBeanFactory in interface BeanFactoryPostProcessorpostProcessBeanFactory in class PropertyResourceConfigurerBeansExceptionpublic void setLocation(Resource location)
setLocation in class PropertiesLoaderSupportpublic void setLocations(Resource[] locations)
setLocations in class PropertiesLoaderSupport
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic void setNoEncryption()
public void setPasswordSource(PasswordSource source)
source - A PasswordSource (interface).public void setCryptorFile(String file)
file - The file containing the cryptor settings.protected String convertPropertyValue(String originalValue)
convertPropertyValue in class PropertyResourceConfigureroriginalValue - The value read from env-*.properties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||