org.onebusaway.container.spring
Class PropertyOverrideConfigurer

java.lang.Object
  extended by org.springframework.core.io.support.PropertiesLoaderSupport
      extended by org.springframework.beans.factory.config.PropertyResourceConfigurer
          extended by org.springframework.beans.factory.config.PropertyOverrideConfigurer
              extended by org.onebusaway.container.spring.PropertyOverrideConfigurer
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered
Direct Known Subclasses:
PropertyOverrideBeanFactoryPostProcessor

public class PropertyOverrideConfigurer
extends org.springframework.beans.factory.config.PropertyOverrideConfigurer

Extension of Spring's PropertyOverrideConfigurer that supports System.getProperty(String) expansion of

${...}
property expressions in override values.

Author:
bdferris

Field Summary
 
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
PropertyOverrideConfigurer()
           
 
Method Summary
protected  void applyPropertyValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory, String beanName, String property, String value)
           
protected  String resolveValue(String value)
           
 void setIgnoreInvalidBeans(boolean ignoreInvalidBeans)
           
 
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, convertPropertyValue, getOrder, postProcessBeanFactory, setOrder
 
Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyOverrideConfigurer

public PropertyOverrideConfigurer()
Method Detail

setIgnoreInvalidBeans

public void setIgnoreInvalidBeans(boolean ignoreInvalidBeans)

applyPropertyValue

protected void applyPropertyValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
                                  String beanName,
                                  String property,
                                  String value)
Overrides:
applyPropertyValue in class org.springframework.beans.factory.config.PropertyOverrideConfigurer

resolveValue

protected String resolveValue(String value)


Copyright © 2012 OneBusAway. All Rights Reserved.