|
||||||||||
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 |
consumerInjection(Method method,
Object bean)
|
protected void |
consumerInjection(Object bean)
|
protected Processor |
createConsumerProcessor(Object pojo,
Method method,
Endpoint endpoint)
Create a processor which invokes the given method when an incoming message exchange is received |
protected PollingConsumer |
createInjectionPollingConsumer(Endpoint endpoint)
Factory method to create a started PollingConsumer to be injected
into a POJO |
protected Producer |
createInjectionProducer(Endpoint endpoint)
A Factory method to create a started Producer to be injected into
a POJO |
SpringCamelContext |
getCamelContext()
|
protected Endpoint |
getEndpointInjection(String uri,
String name,
String injectionPointName)
|
protected Object |
getEndpointInjectionValue(EndpointInject annotation,
Class<?> type,
String injectionPointName)
Creates the value for the injection point for the given annotation |
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(SpringCamelContext camelContext)
|
protected void |
setterInjection(Method method,
Object bean)
|
protected void |
startService(Service service)
|
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 SpringCamelContext getCamelContext()
public void setCamelContext(SpringCamelContext 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 void startService(Service service) throws Exception
Exception
protected Processor createConsumerProcessor(Object pojo, Method method, Endpoint endpoint)
protected Object getEndpointInjectionValue(EndpointInject annotation, Class<?> type, String injectionPointName)
protected PollingConsumer createInjectionPollingConsumer(Endpoint endpoint)
PollingConsumer
to be injected
into a POJO
protected Producer createInjectionProducer(Endpoint endpoint)
Producer
to be injected into
a POJO
protected Endpoint getEndpointInjection(String uri, String name, String injectionPointName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |