Interface BeanPostProcessor


@Internal public interface BeanPostProcessor
Bean post processor interface to customize bean initialization.
  • Method Details

    • postProcessBeforeInitialization

      default Object postProcessBeforeInitialization(Object bean, String beanName)
      Apply this BeanPostProcessor to the given new bean instance before any bean initialization callbacks.
      Parameters:
      bean - the new bean instance
      beanName - the name of the bean
      Returns:
      the bean instance to use
    • postProcessAfterInitialization

      default Object postProcessAfterInitialization(Object bean, String beanName)
      Apply this BeanPostProcessor to the given new bean instance after any bean initialization callbacks.
      Parameters:
      bean - the new bean instance
      beanName - the name of the bean
      Returns:
      the bean instance to use