public class CamelPostProcessorHelper extends Object implements org.apache.camel.CamelContextAware
| Constructor and Description |
|---|
CamelPostProcessorHelper() |
CamelPostProcessorHelper(org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
consumerInjection(Method method,
Object bean,
String beanName) |
protected org.apache.camel.ConsumerTemplate |
createInjectionConsumerTemplate(String endpointUri,
String endpointProperty,
String injectionPointName)
Factory method to create a
ConsumerTemplate to
be injected into a POJO |
protected org.apache.camel.FluentProducerTemplate |
createInjectionFluentProducerTemplate(String endpointUri,
String endpointProperty,
String injectionPointName,
Object bean)
Factory method to create a
FluentProducerTemplate to be injected into a
POJO |
protected org.apache.camel.PollingConsumer |
createInjectionPollingConsumer(org.apache.camel.Endpoint endpoint,
Object bean,
String beanName)
Factory method to create a started
PollingConsumer to be injected into a POJO |
protected org.apache.camel.Producer |
createInjectionProducer(org.apache.camel.Endpoint endpoint,
Object bean,
String beanName)
A Factory method to create a started
Producer to
be injected into a POJO |
protected org.apache.camel.ProducerTemplate |
createInjectionProducerTemplate(String endpointUri,
String endpointProperty,
String injectionPointName,
Object bean)
Factory method to create a
ProducerTemplate to
be injected into a POJO |
protected RuntimeException |
createProxyInstantiationRuntimeException(Class<?> type,
org.apache.camel.Endpoint endpoint,
Exception e) |
org.apache.camel.CamelContext |
getCamelContext() |
protected SubscribeMethodProcessor |
getConsumerProcessor(org.apache.camel.Endpoint endpoint) |
org.apache.camel.Endpoint |
getEndpointInjection(Object bean,
String uri,
String propertyName,
String injectionPointName,
boolean mandatory) |
Object |
getInjectionBeanValue(Class<?> type,
String name) |
Object |
getInjectionPropertyValue(Class<?> type,
String propertyName,
String propertyDefaultValue,
String injectionPointName,
Object bean,
String beanName) |
Object |
getInjectionValue(Class<?> type,
String endpointUri,
String endpointProperty,
String injectionPointName,
Object bean,
String beanName)
Creates the object to be injected for an
EndpointInject or
Produce injection point |
Object |
getInjectionValue(Class<?> type,
String endpointUri,
String endpointProperty,
String injectionPointName,
Object bean,
String beanName,
boolean binding)
Creates the object to be injected for an
EndpointInject or
Produce injection point |
protected boolean |
isSingleton(Object bean,
String beanName)
Implementations can override this method to determine if the bean is
singleton.
|
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
protected void |
startService(org.apache.camel.Service service,
org.apache.camel.CamelContext camelContext,
Object bean,
String beanName)
Stats the given service
|
void |
subscribeMethod(Method method,
Object bean,
String beanName,
String endpointUri,
String endpointProperty,
String predicate) |
public CamelPostProcessorHelper()
public CamelPostProcessorHelper(org.apache.camel.CamelContext camelContext)
public org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic void subscribeMethod(Method method, Object bean, String beanName, String endpointUri, String endpointProperty, String predicate)
protected void startService(org.apache.camel.Service service,
org.apache.camel.CamelContext camelContext,
Object bean,
String beanName)
throws Exception
Exceptionprotected SubscribeMethodProcessor getConsumerProcessor(org.apache.camel.Endpoint endpoint)
public org.apache.camel.Endpoint getEndpointInjection(Object bean, String uri, String propertyName, String injectionPointName, boolean mandatory)
public Object getInjectionValue(Class<?> type, String endpointUri, String endpointProperty, String injectionPointName, Object bean, String beanName)
EndpointInject or
Produce injection pointpublic Object getInjectionValue(Class<?> type, String endpointUri, String endpointProperty, String injectionPointName, Object bean, String beanName, boolean binding)
EndpointInject or
Produce injection pointpublic Object getInjectionPropertyValue(Class<?> type, String propertyName, String propertyDefaultValue, String injectionPointName, Object bean, String beanName)
protected org.apache.camel.ProducerTemplate createInjectionProducerTemplate(String endpointUri, String endpointProperty, String injectionPointName, Object bean)
ProducerTemplate to
be injected into a POJOprotected org.apache.camel.FluentProducerTemplate createInjectionFluentProducerTemplate(String endpointUri, String endpointProperty, String injectionPointName, Object bean)
FluentProducerTemplate to be injected into a
POJOprotected org.apache.camel.ConsumerTemplate createInjectionConsumerTemplate(String endpointUri, String endpointProperty, String injectionPointName)
ConsumerTemplate to
be injected into a POJOprotected org.apache.camel.PollingConsumer createInjectionPollingConsumer(org.apache.camel.Endpoint endpoint,
Object bean,
String beanName)
PollingConsumer to be injected into a POJOprotected org.apache.camel.Producer createInjectionProducer(org.apache.camel.Endpoint endpoint,
Object bean,
String beanName)
Producer to
be injected into a POJOprotected RuntimeException createProxyInstantiationRuntimeException(Class<?> type, org.apache.camel.Endpoint endpoint, Exception e)
Apache Camel