Package org.onebusaway.container.spring
Class SystemPropertyOverrideConfigurer
- java.lang.Object
-
- org.springframework.core.io.support.PropertiesLoaderSupport
-
- org.onebusaway.container.spring.SystemPropertyOverrideConfigurer
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor,org.springframework.core.Ordered,org.springframework.core.PriorityOrdered
public class SystemPropertyOverrideConfigurer extends org.springframework.core.io.support.PropertiesLoaderSupport implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.PriorityOrderedA SpringBeanFactoryPostProcessorthat can be used to override System properties (seeSystem.getProperties()) from within a Spring application context. Because it is aBeanFactoryPostProcessorand also implementsPriorityOrdered, this processor can be configured to run before almost anything else when constructing a Spring application context, especially if you set theorderproperty to something low. This is useful for setting System properties before anotherBeanFactoryPostProcessorlikePropertyPlaceholderConfigurerorPropertyOverrideConfigurerare applied.- Author:
- bdferris
- See Also:
BeanFactoryPostProcessor,PropertiesLoaderSupport,PropertyOverrideConfigurer,PropertyPlaceholderConfigurer
-
-
Constructor Summary
Constructors Constructor Description SystemPropertyOverrideConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)voidsetOrder(int order)
-
-
-
Method Detail
-
setOrder
public void setOrder(int order)
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException- Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor- Throws:
org.springframework.beans.BeansException
-
-