public interface CamelBeanPostProcessor
Modifier and Type | Method and Description |
---|---|
default Object |
postProcessAfterInitialization(Object bean,
String beanName)
Apply this post processor to the given new bean instance after any bean
initialization callbacks (like
afterPropertiesSet
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 (like
afterPropertiesSet
or a custom init-method). |
default Object postProcessBeforeInitialization(Object bean, String beanName) throws Exception
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.bean
- the new bean instancebeanName
- the name of the beannull
, no subsequent BeanPostProcessors will be invokedException
- is thrown if error post processing beandefault Object postProcessAfterInitialization(Object bean, String beanName) throws Exception
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.bean
- the new bean instancebeanName
- the name of the beannull
, no subsequent BeanPostProcessors will be invokedException
- is thrown if error post processing beanApache Camel