Class 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

        localOverride, localProperties, logger
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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, convertProperty, convertPropertyValue, getOrder, postProcessBeanFactory, setOrder
      • Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport

        loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
    • 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)