de.schwarzrot.data.access.pref
Class PreferencesConfigurer
java.lang.Object
org.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
de.schwarzrot.data.access.pref.PreferencesConfigurer
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, BeanFactoryPostProcessor, InitializingBean, Ordered, PriorityOrdered
public class PreferencesConfigurer
- extends PropertyPlaceholderConfigurer
- implements InitializingBean
replacement for springs PreferencesPlaceholderConfigurer
, as we use
slightly different nodes for system and user space. This implementation has
the following access priority:
- user preferences
- system preferences
- setting from property resource (i.e. provided with jarfiles)
- Author:
- Reinhard Mantey
Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesModeName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreferencesConfigurer
public PreferencesConfigurer()
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface InitializingBean
getApplicationName
public final String getApplicationName()
getSchemaName
public final String getSchemaName()
setApplicationName
public final void setApplicationName(String applicationName)
setLocation
public void setLocation(Resource arg0)
- Overrides:
setLocation
in class PropertiesLoaderSupport
setSchemaName
public final void setSchemaName(String schemaName)
setSystemPropertiesMode
public void setSystemPropertiesMode(int mode)
- Overrides:
setSystemPropertiesMode
in class PropertyPlaceholderConfigurer
resolvePlaceholder
protected String resolvePlaceholder(String placeholder,
Properties props)
- Overrides:
resolvePlaceholder
in class PropertyPlaceholderConfigurer
Submit
a bug or request a feature
SRJRCFrames is published according to the
GNU General Public License
Copyright 2005-2012
Reinhard Mantey - some rights reserved.