Package com.bobocode.bring.core.bpp.impl
Class PostConstructBeanPostProcessor
java.lang.Object
com.bobocode.bring.core.bpp.impl.PostConstructBeanPostProcessor
- All Implemented Interfaces:
BeanPostProcessor
The
PostConstructBeanPostProcessor
is a custom implementation of the
BeanPostProcessor
interface in the Bring framework, designed to
handle post-construction tasks for beans.
This processor specifically targets methods annotated with the @PostConstruct
annotation, providing a mechanism to execute custom logic after a bean has been
instantiated.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpostProcessInitialization
(Object bean, String beanName) Execute methods annotated with @PostConstruct.
-
Constructor Details
-
PostConstructBeanPostProcessor
public PostConstructBeanPostProcessor()
-
-
Method Details
-
postProcessInitialization
Execute methods annotated with @PostConstruct.- Specified by:
postProcessInitialization
in interfaceBeanPostProcessor
- Parameters:
bean
- the bean instancebeanName
- the name of the bean- Returns:
- the processed bean
-