Package com.bobocode.bring.core.bpp
Class BeanPostProcessorFactory
java.lang.Object
com.bobocode.bring.core.bpp.BeanPostProcessorFactory
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:
ScheduleBeanPostProcessor
: Processes beans annotated with@Scheduled
.
Usage example:
BeanPostProcessorFactory processorFactory = new BeanPostProcessorFactory();
List<BeanPostProcessor> processors = processorFactory.getBeanPostProcessors();
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<BeanPostProcessor> The list of bean post-processors created by this factory. -
Constructor Summary
ConstructorsConstructorDescriptionBeanPostProcessorFactory
(BringBeanFactory beanFactory, org.reflections.Reflections reflections) Constructs a new BeanPostProcessorFactory and initializes the list of post-processors. -
Method Summary
-
Field Details
-
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 beansreflections
- the Reflections instance for scanning classes- See Also:
-