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
BeanFactoryPostProcessorthat 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 intgetOrder()voidpostProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)voidsetAdditionalElements(List<String> additionalElements)voidsetBeanName(String beanName)voidsetOrder(int order)voidsetPropertyName(String propertyName)
-
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrderin 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:
postProcessBeanDefinitionRegistryin 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:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor- Throws:
org.springframework.beans.BeansException
-
-