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 a PropertySourcesPlaceholderConfigurer, for example.
Author:
avasquez
  • Constructor Details

    • ListMergingPostProcessor

      public ListMergingPostProcessor()
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setOrder

      public void setOrder(int order)
    • setBeanName

      public void setBeanName(String beanName)
    • setPropertyName

      public void setPropertyName(String propertyName)
    • setAdditionalElements

      public void setAdditionalElements(List<String> additionalElements)
    • postProcessBeanDefinitionRegistry

      public void postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeanDefinitionRegistry in interface org.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 interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
      Throws:
      org.springframework.beans.BeansException