Package org.frankframework.lifecycle
Class AbstractPropertySourcePostProcessor
java.lang.Object
org.frankframework.lifecycle.AbstractPropertySourcePostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.config.BeanFactoryPostProcessor,org.springframework.context.EnvironmentAware,org.springframework.core.Ordered,org.springframework.core.PriorityOrdered
- Direct Known Subclasses:
HostnamePropertySourcePostProcessor
public abstract class AbstractPropertySourcePostProcessor
extends Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.PriorityOrdered, org.springframework.context.EnvironmentAware
Property Configurer that adds additional properties to the Spring environment through a custom property-source.
Implements BeanFactoryPostProcessor so it's executed before other beans are created.
- Author:
- Niels Meijer
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidconvertProperties(Properties props) intgetOrder()voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) voidsetEnvironment(org.springframework.core.env.Environment environment)
-
Constructor Details
-
AbstractPropertySourcePostProcessor
public AbstractPropertySourcePostProcessor()
-
-
Method Details
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
convertProperties
- Parameters:
props- An empty or previously setPropertiesobject
-
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
-