| org.sakaiproject.util.PropertyOverrideConfigurer
PropertyOverrideConfigurer | public class PropertyOverrideConfigurer extends PropertyResourceConfigurer (Code) | |
Sakai's extension to the Spring PropertyOverrideConfigurer - allow our dotted bean ids, use @ as a separator between the bean id and the property name.
This could be an extension, just defining a new processKey(), but for the *private* members that the extension does not have access to...
|
Method Summary | |
protected void | applyPropertyValue(ConfigurableListableBeanFactory factory, String beanName, String property, String value) Apply the given property value to the corresponding bean. | public String | getValue(String name) Access the value of the entry with this name key
Parameters: name - The key to search for. | public boolean | hasPropertyOverridesFor(String beanName) Were there overrides for this bean? Only valid after processing has occurred at least once. | protected void | processKey(ConfigurableListableBeanFactory factory, String key, String value) Process the given key as 'beanName@property' entry. | protected void | processProperties(ConfigurableListableBeanFactory beanFactory, Properties props) | public void | setIgnoreInvalidKeys(boolean ignoreInvalidKeys) Set whether to ignore invalid keys. |
beanNames | protected Set beanNames(Code) | | Contains names of beans that have overrides
|
ignoreInvalidKeys | protected boolean ignoreInvalidKeys(Code) | | |
m_entries | protected Map m_entries(Code) | | Here are all the name=value entries we read in.
|
applyPropertyValue | protected void applyPropertyValue(ConfigurableListableBeanFactory factory, String beanName, String property, String value)(Code) | | Apply the given property value to the corresponding bean.
|
getValue | public String getValue(String name)(Code) | | Access the value of the entry with this name key
Parameters: name - The key to search for. The value for this key, or null if not defined. |
hasPropertyOverridesFor | public boolean hasPropertyOverridesFor(String beanName)(Code) | | Were there overrides for this bean? Only valid after processing has occurred at least once.
Parameters: beanName - name of the bean to query status for whether there were property overrides for the named bean |
processKey | protected void processKey(ConfigurableListableBeanFactory factory, String key, String value) throws BeansException(Code) | | Process the given key as 'beanName@property' entry.
|
processProperties | protected void processProperties(ConfigurableListableBeanFactory beanFactory, Properties props) throws BeansException(Code) | | |
setIgnoreInvalidKeys | public void setIgnoreInvalidKeys(boolean ignoreInvalidKeys)(Code) | | Set whether to ignore invalid keys. Default is false.
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.
|
|
|