Package org.apache.camel.spi
Interface CamelBeanPostProcessor
-
public interface CamelBeanPostProcessor
Bean post processor.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Object
postProcessAfterInitialization(Object bean, String beanName)
Apply this post processor to the given new bean instance after any bean initialization callbacks (likeafterPropertiesSet
or a custom init-method).default Object
postProcessBeforeInitialization(Object bean, String beanName)
Apply this post processor to the given new bean instance before any bean initialization callbacks (likeafterPropertiesSet
or a custom init-method).
-
-
-
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 (likeafterPropertiesSet
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 instancebeanName
- 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 (likeafterPropertiesSet
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 instancebeanName
- 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
-
-