public interface CamelBeanPostProcessor
Modifier and Type | Method and Description |
---|---|
default boolean |
isEnabled() |
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 void |
setEnabled(boolean enabled)
Can be used to turn off bean post processing.
|
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 beandefault void setEnabled(boolean enabled)
EndpointInject
, ProducerTemplate
,
Produce
, Consume
etc will not be injected and in use.
Turning this off should only be done if you are sure you do not use any of these Camel features.default boolean isEnabled()
setEnabled(boolean)
Apache Camel