org.onebusaway.container.spring
public class SystemPropertyOverrideConfigurer extends org.springframework.core.io.support.PropertiesLoaderSupport implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.PriorityOrdered
BeanFactoryPostProcessor
that can be used to override System
properties (see System.getProperties()
) from within a Spring
application context. Because it is a BeanFactoryPostProcessor
and
also implements PriorityOrdered
, this processor can be configured to
run before almost anything else when constructing a Spring application
context, especially if you set the order
property to something low.
This is useful for setting System properties before another
BeanFactoryPostProcessor
like PropertyPlaceholderConfigurer
or PropertyOverrideConfigurer
are applied.BeanFactoryPostProcessor
,
PropertiesLoaderSupport
,
PropertyOverrideConfigurer
,
PropertyPlaceholderConfigurer
Constructor and Description |
---|
SystemPropertyOverrideConfigurer() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
setOrder(int order) |
public void setOrder(int order)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
org.springframework.beans.BeansException
Copyright © 2014 OneBusAway. All Rights Reserved.