|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.CamelPostProcessorHelper
public class CamelPostProcessorHelper
A helper class for Camel based injector or post processing hooks which can be reused by both the Spring and Guice support.
Constructor Summary | |
---|---|
CamelPostProcessorHelper()
|
|
CamelPostProcessorHelper(CamelContext camelContext)
|
Method Summary | |
---|---|
void |
consumerInjection(Method method,
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 |
protected RuntimeException |
createProxyInstantiationRuntimeException(Class<?> type,
Endpoint endpoint,
Exception e)
|
CamelContext |
getCamelContext()
|
protected Endpoint |
getEndpointInjection(String uri,
String name,
String injectionPointName,
boolean mandatory)
|
Object |
getInjectionValue(Class<?> type,
String endpointUri,
String endpointRef,
String injectionPointName)
Creates the object to be injected for an EndpointInject or Produce injection point |
void |
setCamelContext(CamelContext camelContext)
Injects the CamelContext |
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 CamelPostProcessorHelper()
public CamelPostProcessorHelper(CamelContext camelContext)
Method Detail |
---|
public CamelContext getCamelContext()
public void setCamelContext(CamelContext camelContext)
CamelContextAware
CamelContext
setCamelContext
in interface CamelContextAware
public void consumerInjection(Method method, Object bean)
protected void subscribeMethod(Method method, Object bean, String endpointUri, String endpointName)
public void startService(Service service) throws Exception
Exception
protected Processor createConsumerProcessor(Object pojo, Method method, Endpoint endpoint)
protected Endpoint getEndpointInjection(String uri, String name, String injectionPointName, boolean mandatory)
public Object getInjectionValue(Class<?> type, String endpointUri, String endpointRef, String injectionPointName)
EndpointInject
or Produce
injection point
protected RuntimeException createProxyInstantiationRuntimeException(Class<?> type, Endpoint endpoint, Exception e)
protected PollingConsumer createInjectionPollingConsumer(Endpoint endpoint)
PollingConsumer
to be injected
into a POJO
protected Producer createInjectionProducer(Endpoint endpoint)
Producer
to be injected into
a POJO
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |