Interface CamelBeanPostProcessor


  • public interface CamelBeanPostProcessor
    Bean post processor.
    • Method Detail

      • postProcessBeforeInitialization

        default Object postProcessBeforeInitialization​(Object bean,
                                                       String beanName)
                                                throws Exception
        Apply this post processor to the given new bean instance before any bean initialization callbacks (like afterPropertiesSet or a custom init-method). The bean will already be populated with property values. The returned bean instance may be a wrapper around the original.
        Parameters:
        bean - the new bean instance
        beanName - the name of the bean
        Returns:
        the bean instance to use, either the original or a wrapped one; if null, no subsequent BeanPostProcessors will be invoked
        Throws:
        Exception - is thrown if error post processing bean
      • postProcessAfterInitialization

        default Object postProcessAfterInitialization​(Object bean,
                                                      String beanName)
                                               throws Exception
        Apply this post processor to the given new bean instance after any bean initialization callbacks (like afterPropertiesSet or a custom init-method). The bean will already be populated with property values. The returned bean instance may be a wrapper around the original.
        Parameters:
        bean - the new bean instance
        beanName - the name of the bean
        Returns:
        the bean instance to use, either the original or a wrapped one; if null, no subsequent BeanPostProcessors will be invoked
        Throws:
        Exception - is thrown if error post processing bean