Class AbstractBeanRemovalPostProcessor

java.lang.Object
ch.tocco.nice2.boot.api.AbstractBeanRemovalPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor
Direct Known Subclasses:
DevconBeanFactoryPostProcessor, GreenmailBeanFactoryPostProcessor

public abstract class AbstractBeanRemovalPostProcessor extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor
Used to remove certain beans from the bean factory when the production profile is active.
  • Constructor Details

    • AbstractBeanRemovalPostProcessor

      public AbstractBeanRemovalPostProcessor()
  • Method Details

    • postProcessBeanFactory

      public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory bf) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • shouldRemove

      protected abstract boolean shouldRemove(String className)