|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.io.support.PropertiesLoaderSupport org.springframework.beans.factory.config.PropertyResourceConfigurer org.springframework.beans.factory.config.PropertyOverrideConfigurer ch.elca.el4j.env.beans.EnvPropertyOverrideConfigurer
public class EnvPropertyOverrideConfigurer
Specific property override configurer for the EL4J environment.
Field Summary | |
---|---|
static String |
ENV_BEAN_PROPERTY_PROPERTIES_LOCATION
The env bean property location. |
protected ApplicationContext |
m_applicationContext
Is the used application context. |
protected boolean |
m_ignoreBeanNameNotFound
Should invalid bean names be ignored? |
protected PropertyEncryptionUtil |
m_util
Property encryption handler. |
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.PropertyOverrideConfigurer |
---|
DEFAULT_BEAN_NAME_SEPARATOR |
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 | |
---|---|
EnvPropertyOverrideConfigurer()
|
Method Summary | |
---|---|
protected void |
applyPropertyValue(ConfigurableListableBeanFactory factory,
String beanName,
String property,
String value)
|
protected String |
convertPropertyValue(String originalValue)
Decrypts values read from the env-*.properties files. |
boolean |
isIgnoreBeanNameNotFound()
|
void |
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
Sets the location of the env bean property properties file. |
void |
setApplicationContext(ApplicationContext applicationContext)
|
void |
setCryptorFile(String file)
|
void |
setIgnoreBeanNameNotFound(boolean ignoreBeanNameNotFound)
|
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.PropertyOverrideConfigurer |
---|
hasPropertyOverridesFor, processKey, processProperties, setBeanNameSeparator, setIgnoreInvalidKeys |
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_BEAN_PROPERTY_PROPERTIES_LOCATION
protected static final org.slf4j.Logger s_logger
protected ApplicationContext m_applicationContext
protected boolean m_ignoreBeanNameNotFound
protected PropertyEncryptionUtil m_util
Constructor Detail |
---|
public EnvPropertyOverrideConfigurer()
Method Detail |
---|
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException
postProcessBeanFactory
in interface BeanFactoryPostProcessor
postProcessBeanFactory
in class PropertyResourceConfigurer
BeansException
protected void applyPropertyValue(ConfigurableListableBeanFactory factory, String beanName, String property, String value)
applyPropertyValue
in class PropertyOverrideConfigurer
public void setLocation(Resource location)
setLocation
in class PropertiesLoaderSupport
public void setLocations(Resource[] locations)
setLocations
in class PropertiesLoaderSupport
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public boolean isIgnoreBeanNameNotFound()
true
if ignoreBeanNameNotFound is set.public void setIgnoreBeanNameNotFound(boolean ignoreBeanNameNotFound)
ignoreBeanNameNotFound
- Should invalid bean names be ignored?public void setNoEncryption()
public void setPasswordSource(PasswordSource source)
source
- A PasswordSource interface.public void setCryptorFile(String file)
file
- The file containing the encryption properties.protected String convertPropertyValue(String originalValue)
convertPropertyValue
in class PropertyResourceConfigurer
originalValue
- The value read from env-*.properties The initialization cannot
go in constructor as we don't have all the required properties
there yet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |