public class DatabasePropertyOverrideConfigurer extends DatabaseConfigurer
| Constructor and Description |
|---|
DatabasePropertyOverrideConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyMapPropertyValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String beanName,
String propertyName,
String mapKey,
String value)
Apply the given property value to the corresponding map property on the
bean.
|
protected void |
applyPropertyValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String beanName,
String propertyName,
String value)
Apply the given property value to the corresponding bean.
|
boolean |
hasPropertyOverridesFor(String beanName)
Were there overrides for this bean? Only valid after processing has
occurred at least once.
|
protected void |
processKey(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String key,
String value)
Process the given key as 'beanName.property' entry.
|
protected void |
processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
Map properties)
Apply the given Properties to the bean factory.
|
void |
setIgnoreInvalidKeys(boolean ignore)
Set the flag indictaing if invalid keys should be ignored or an exception
thrown.
|
convertProperties, convertPropertyValue, destroy, getKeyColumnName, getLog, getOrder, getTableName, getValueColumnName, postProcessBeanFactory, setDataSource, setKeyColumnName, setOrder, setTableName, setValueColumnNameprotected void applyMapPropertyValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String beanName,
String propertyName,
String mapKey,
String value)
factory - The bean factory.beanName - The name of the bean.propertyName - The name of the property.mapKey - The key in the map to set.value - The value to set.protected void applyPropertyValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String beanName,
String propertyName,
String value)
factory - The bean factory.beanName - The name of the bean.propertyName - The name of the property.value - The value to set.public boolean hasPropertyOverridesFor(String beanName)
beanName - name of the bean to query status forprotected void processKey(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String key,
String value)
factory - The bean factory.key - The key used to set the property.value - The value to set. @ If there was an problem setting the value.protected void processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
Map properties)
DatabaseConfigurerprocessProperties in class DatabaseConfigurerbeanFactory - The bean factory.properties - The property name and values to set. @ If there was an
problem setting the values.public void setIgnoreInvalidKeys(boolean ignore)
Set the flag indictaing if invalid keys should be ignored or an exception thrown. If you ignore invalid keys, keys that do not follow the 'beanName.property' format will just be logged as warning. This allows to have arbitrary other keys in a properties file.
ignore - The flag indictaing if invalid keys should be ignored or an
exception thrown.Copyright © 2015 Revolution Systems Inc.. All rights reserved.