Package org.craftercms.commons.spring
Class ListMergingPostProcessor
- java.lang.Object
-
- org.craftercms.commons.spring.ListMergingPostProcessor
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor
,org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
,org.springframework.core.Ordered
,org.springframework.core.PriorityOrdered
public class ListMergingPostProcessor extends Object implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor, org.springframework.core.PriorityOrdered
BeanFactoryPostProcessor
that allows to add additional elements to a list property value of an already defined bean. Useful to add additional locations to aPropertySourcesPlaceholderConfigurer
, for example.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description ListMergingPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
void
postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
void
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
void
setAdditionalElements(List<String> additionalElements)
void
setBeanName(String beanName)
void
setOrder(int order)
void
setPropertyName(String propertyName)
-
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-
setBeanName
public void setBeanName(String beanName)
-
setPropertyName
public void setPropertyName(String propertyName)
-
postProcessBeanDefinitionRegistry
public void postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) throws org.springframework.beans.BeansException
- Specified by:
postProcessBeanDefinitionRegistry
in interfaceorg.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
- Throws:
org.springframework.beans.BeansException
-
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
-
-