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
,LowerCasePropertySourcePostProcessor
,OverwritePropertySourcePostProcessor
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
convertProperties
(Properties props) int
getOrder()
void
postProcessBeanFactory
(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) void
setEnvironment
(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:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
-
convertProperties
- Parameters:
props
- An empty or previously setProperties
object
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
postProcessBeanFactory
in interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor
- Throws:
org.springframework.beans.BeansException
-