Class PostConstructBeanPostProcessor

java.lang.Object
com.bobocode.bring.core.bpp.impl.PostConstructBeanPostProcessor
All Implemented Interfaces:
BeanPostProcessor

public class PostConstructBeanPostProcessor extends Object implements 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 Details

    • PostConstructBeanPostProcessor

      public PostConstructBeanPostProcessor()
  • Method Details

    • postProcessInitialization

      public Object postProcessInitialization(Object bean, String beanName)
      Execute methods annotated with @PostConstruct.
      Specified by:
      postProcessInitialization in interface BeanPostProcessor
      Parameters:
      bean - the bean instance
      beanName - the name of the bean
      Returns:
      the processed bean