Package org.apache.camel.impl.engine
Class CamelPostProcessorHelper
- java.lang.Object
-
- org.apache.camel.impl.engine.CamelPostProcessorHelper
-
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
public class CamelPostProcessorHelper extends Object implements org.apache.camel.CamelContextAware
-
-
Constructor Summary
Constructors Constructor Description CamelPostProcessorHelper()CamelPostProcessorHelper(org.apache.camel.CamelContext camelContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumerInjection(Method method, Object bean, String beanName)protected org.apache.camel.ConsumerTemplatecreateInjectionConsumerTemplate(String endpointUri, String endpointProperty, String injectionPointName)Factory method to create aConsumerTemplateto be injected into a POJOprotected org.apache.camel.FluentProducerTemplatecreateInjectionFluentProducerTemplate(String endpointUri, String endpointProperty, String injectionPointName, Object bean)Factory method to create aFluentProducerTemplateto be injected into a POJOprotected org.apache.camel.PollingConsumercreateInjectionPollingConsumer(org.apache.camel.Endpoint endpoint, Object bean, String beanName)Factory method to create a startedPollingConsumerto be injected into a POJOprotected org.apache.camel.ProducercreateInjectionProducer(org.apache.camel.Endpoint endpoint, Object bean, String beanName)A Factory method to create a startedProducerto be injected into a POJOprotected org.apache.camel.ProducerTemplatecreateInjectionProducerTemplate(String endpointUri, String endpointProperty, String injectionPointName, Object bean)Factory method to create aProducerTemplateto be injected into a POJOprotected RuntimeExceptioncreateProxyInstantiationRuntimeException(Class<?> type, org.apache.camel.Endpoint endpoint, Exception e)org.apache.camel.CamelContextgetCamelContext()protected SubscribeMethodProcessorgetConsumerProcessor(org.apache.camel.Endpoint endpoint)org.apache.camel.EndpointgetEndpointInjection(Object bean, String uri, String propertyName, String injectionPointName, boolean mandatory)ObjectgetInjectionBeanConfigValue(Class<?> type, String name)ObjectgetInjectionBeanValue(Class<?> type, String name)ObjectgetInjectionPropertyValue(Class<?> type, String propertyName, String propertyDefaultValue, String injectionPointName, Object bean, String beanName)ObjectgetInjectionValue(Class<?> type, String endpointUri, String endpointProperty, String injectionPointName, Object bean, String beanName)Creates the object to be injected for anEndpointInjectorProduceinjection pointObjectgetInjectionValue(Class<?> type, String endpointUri, String endpointProperty, String injectionPointName, Object bean, String beanName, boolean binding)Creates the object to be injected for anEndpointInjectorProduceinjection pointprotected booleanisSingleton(Object bean, String beanName)Implementations can override this method to determine if the bean is singleton.voidsetCamelContext(org.apache.camel.CamelContext camelContext)protected voidstartService(org.apache.camel.Service service, org.apache.camel.CamelContext camelContext, Object bean, String beanName)Stats the given servicevoidsubscribeMethod(Method method, Object bean, String beanName, String endpointUri, String endpointProperty, String predicate)
-
-
-
Method Detail
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContextin interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
subscribeMethod
public void subscribeMethod(Method method, Object bean, String beanName, String endpointUri, String endpointProperty, String predicate)
-
startService
protected void startService(org.apache.camel.Service service, org.apache.camel.CamelContext camelContext, Object bean, String beanName) throws ExceptionStats the given service- Throws:
Exception
-
getConsumerProcessor
protected SubscribeMethodProcessor getConsumerProcessor(org.apache.camel.Endpoint endpoint)
-
getEndpointInjection
public org.apache.camel.Endpoint getEndpointInjection(Object bean, String uri, String propertyName, String injectionPointName, boolean mandatory)
-
getInjectionValue
public Object getInjectionValue(Class<?> type, String endpointUri, String endpointProperty, String injectionPointName, Object bean, String beanName)
Creates the object to be injected for anEndpointInjectorProduceinjection point
-
getInjectionValue
public Object getInjectionValue(Class<?> type, String endpointUri, String endpointProperty, String injectionPointName, Object bean, String beanName, boolean binding)
Creates the object to be injected for anEndpointInjectorProduceinjection point
-
getInjectionPropertyValue
public Object getInjectionPropertyValue(Class<?> type, String propertyName, String propertyDefaultValue, String injectionPointName, Object bean, String beanName)
-
createInjectionProducerTemplate
protected org.apache.camel.ProducerTemplate createInjectionProducerTemplate(String endpointUri, String endpointProperty, String injectionPointName, Object bean)
Factory method to create aProducerTemplateto be injected into a POJO
-
createInjectionFluentProducerTemplate
protected org.apache.camel.FluentProducerTemplate createInjectionFluentProducerTemplate(String endpointUri, String endpointProperty, String injectionPointName, Object bean)
Factory method to create aFluentProducerTemplateto be injected into a POJO
-
createInjectionConsumerTemplate
protected org.apache.camel.ConsumerTemplate createInjectionConsumerTemplate(String endpointUri, String endpointProperty, String injectionPointName)
Factory method to create aConsumerTemplateto be injected into a POJO
-
createInjectionPollingConsumer
protected org.apache.camel.PollingConsumer createInjectionPollingConsumer(org.apache.camel.Endpoint endpoint, Object bean, String beanName)Factory method to create a startedPollingConsumerto be injected into a POJO
-
createInjectionProducer
protected org.apache.camel.Producer createInjectionProducer(org.apache.camel.Endpoint endpoint, Object bean, String beanName)A Factory method to create a startedProducerto be injected into a POJO
-
createProxyInstantiationRuntimeException
protected RuntimeException createProxyInstantiationRuntimeException(Class<?> type, org.apache.camel.Endpoint endpoint, Exception e)
-
-