|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.spring.CamelBeanPostProcessor
public class CamelBeanPostProcessor
A post processor to perform injection of Endpoint
and Producer
instances together with binding
methods annotated with @MessageDriven
to a Camel consumer.
Constructor Summary | |
---|---|
CamelBeanPostProcessor()
|
Method Summary | |
---|---|
protected void |
addConsumer(org.apache.camel.Consumer consumer)
|
protected void |
consumerInjection(Method method,
Object bean)
|
protected void |
consumerInjection(Object bean)
|
protected org.apache.camel.Processor |
createConsumerProcessor(Object pojo,
Method method,
org.apache.camel.Endpoint endpoint)
Create a processor which invokes the given method when an incoming message exchange is received |
org.apache.camel.CamelContext |
getCamelContext()
|
protected org.apache.camel.Endpoint |
getEndpointInjection(String uri,
String name)
|
protected Object |
getEndpointInjectionValue(org.apache.camel.EndpointInject annotation,
Class<?> type)
Creates the value for the injection point for the given annotation |
MethodInvocationStrategy |
getInvocationStrategy()
|
protected void |
injectFields(Object bean)
A strategy method to allow implementations to perform some custom JBI based injection of the POJO |
protected void |
injectMethods(Object bean)
|
Object |
postProcessAfterInitialization(Object bean,
String beanName)
|
Object |
postProcessBeforeInitialization(Object bean,
String beanName)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setCamelContext(org.apache.camel.CamelContext camelContext)
|
void |
setInvocationStrategy(MethodInvocationStrategy invocationStrategy)
|
protected void |
setterInjection(Method method,
Object bean)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CamelBeanPostProcessor()
Method Detail |
---|
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
org.springframework.beans.BeansException
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
org.springframework.beans.BeansException
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public MethodInvocationStrategy getInvocationStrategy()
public void setInvocationStrategy(MethodInvocationStrategy invocationStrategy)
public org.apache.camel.CamelContext getCamelContext()
public void setCamelContext(org.apache.camel.CamelContext camelContext)
protected void injectFields(Object bean)
bean
- the bean to be injectedprotected void injectMethods(Object bean)
protected void setterInjection(Method method, Object bean)
protected void consumerInjection(Object bean)
protected void consumerInjection(Method method, Object bean)
protected org.apache.camel.Processor createConsumerProcessor(Object pojo, Method method, org.apache.camel.Endpoint endpoint)
protected void addConsumer(org.apache.camel.Consumer consumer)
protected Object getEndpointInjectionValue(org.apache.camel.EndpointInject annotation, Class<?> type)
protected org.apache.camel.Endpoint getEndpointInjection(String uri, String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |