|
||||||||||
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 |
getInjectionValue(Class<?> type,
String endpointUri,
String endpointRef,
String injectionPointName)
Creates the object to be injected for an EndpointInject or Produce injection point |
protected void |
injectField(Field field,
String endpointUri,
String endpointRef,
Object bean)
|
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(ApplicationContext applicationContext)
|
void |
setCamelContext(SpringCamelContext camelContext)
|
protected void |
setterInjection(Method method,
Object bean)
|
protected void |
setterInjection(Method method,
Object bean,
String endpointUri,
String endpointRef)
|
protected void |
startService(Service service)
|
protected void |
subscribeMethod(Method method,
Object bean,
String endpointUri,
String endpointName)
|
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 BeansException
postProcessBeforeInitialization
in interface BeanPostProcessor
BeansException
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException
postProcessAfterInitialization
in interface BeanPostProcessor
BeansException
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public SpringCamelContext getCamelContext()
public void setCamelContext(SpringCamelContext camelContext)
protected void injectFields(Object bean)
bean
- the bean to be injectedprotected void injectField(Field field, String endpointUri, String endpointRef, Object bean)
protected void injectMethods(Object bean)
protected void setterInjection(Method method, Object bean)
protected void setterInjection(Method method, Object bean, String endpointUri, String endpointRef)
protected void consumerInjection(Object bean)
protected void consumerInjection(Method method, Object bean)
protected void subscribeMethod(Method method, Object bean, String endpointUri, String endpointName)
protected void startService(Service service) throws Exception
Exception
protected Processor createConsumerProcessor(Object pojo, Method method, Endpoint endpoint)
protected Object getInjectionValue(Class<?> type, String endpointUri, String endpointRef, String injectionPointName)
EndpointInject
or Produce
injection point
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 |