Class BeanPostProcessorFactory

java.lang.Object
com.bobocode.bring.core.bpp.BeanPostProcessorFactory

public class BeanPostProcessorFactory extends Object
The BeanPostProcessorFactory class is responsible for creating and managing a list of BeanPostProcessor instances. It initializes the list with default post-processors, such as the ScheduleBeanPostProcessor.

This class is typically used to provide additional processing for beans during their initialization phase in the BringApplicationContext.

The default post-processor included in the list is:

Usage example:


 BeanPostProcessorFactory processorFactory = new BeanPostProcessorFactory();
 List<BeanPostProcessor> processors = processorFactory.getBeanPostProcessors();
 
Since:
1.0
Author:
Blyzhnytsia Team
See Also:
  • Field Details

    • beanPostProcessors

      private final List<BeanPostProcessor> beanPostProcessors
      The list of bean post-processors created by this factory.
  • Constructor Details

    • BeanPostProcessorFactory

      public BeanPostProcessorFactory(BringBeanFactory beanFactory, org.reflections.Reflections reflections)
      Constructs a new BeanPostProcessorFactory and initializes the list of post-processors.

      The default post-processor included in the list is the ScheduleBeanPostProcessor.

      Parameters:
      beanFactory - the BringBeanFactory instance for obtaining beans
      reflections - the Reflections instance for scanning classes
      See Also: