Class CamelNamespaceHandler.CamelInjector
java.lang.Object
org.apache.camel.impl.engine.CamelPostProcessorHelper
org.apache.camel.blueprint.handler.CamelNamespaceHandler.CamelInjector
- All Implemented Interfaces:
org.apache.aries.blueprint.BeanProcessor,org.apache.aries.blueprint.Processor,org.apache.camel.CamelContextAware,org.apache.camel.spi.HasCamelContext
- Enclosing class:
- CamelNamespaceHandler
public static class CamelNamespaceHandler.CamelInjector
extends org.apache.camel.impl.engine.CamelPostProcessorHelper
implements org.apache.aries.blueprint.BeanProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.aries.blueprint.BeanProcessor
org.apache.aries.blueprint.BeanProcessor.BeanCreator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterDestroy(Object bean, String beanName) afterInit(Object bean, String beanName, org.apache.aries.blueprint.BeanProcessor.BeanCreator beanCreator, org.osgi.service.blueprint.reflect.BeanMetadata beanMetadata) voidbeforeDestroy(Object bean, String beanName) beforeInit(Object bean, String beanName, org.apache.aries.blueprint.BeanProcessor.BeanCreator beanCreator, org.osgi.service.blueprint.reflect.BeanMetadata beanMetadata) org.apache.camel.CamelContextprotected voidvoidinjectFieldBean(Field field, Object bean, String name) protected voidinjectFieldProperty(Field field, Object bean, String propertyName, String propertyDefaultValue, String separator) protected voidinjectFields(Object bean, String beanName) A strategy method to allow implementations to perform some custom JBI based injection of the POJOprotected voidinjectMethods(Object bean, String beanName) protected booleanisSingleton(Object bean, String beanName) voidsetBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer) protected static voidprotected voidsetterBeanInjection(Method method, String name, Object bean, String beanName) protected voidsetterInjection(Method method, Object bean, String beanName) protected voidsetterInjection(Method method, Object bean, String beanName, String endpointUri, String endpointProperty) protected voidsetterPropertyInjection(Method method, Object bean, String propertyName, String propertyDefaultValue, String separator) Methods inherited from class org.apache.camel.impl.engine.CamelPostProcessorHelper
consumerInjection, createInjectionConsumerTemplate, createInjectionFluentProducerTemplate, createInjectionPollingConsumer, createInjectionProducer, createInjectionProducerTemplate, createProxyInstantiationRuntimeException, destroyMethodCandidate, getConsumerProcessor, getEndpointInjection, getInjectionBeanConfigValue, getInjectionBeanMethodValue, getInjectionBeanValue, getInjectionPropertyValue, getInjectionValue, getInjectionValue, initMethodCandidate, setCamelContext, startService, subscribeMethod
-
Constructor Details
-
CamelInjector
-
-
Method Details
-
setBlueprintContainer
public void setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer) -
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext- Overrides:
getCamelContextin classorg.apache.camel.impl.engine.CamelPostProcessorHelper
-
beforeInit
public Object beforeInit(Object bean, String beanName, org.apache.aries.blueprint.BeanProcessor.BeanCreator beanCreator, org.osgi.service.blueprint.reflect.BeanMetadata beanMetadata) - Specified by:
beforeInitin interfaceorg.apache.aries.blueprint.BeanProcessor
-
injectFields
A strategy method to allow implementations to perform some custom JBI based injection of the POJO- Parameters:
bean- the bean to be injected
-
injectField
-
injectFieldProperty
-
injectFieldBean
-
setField
-
injectMethods
-
setterInjection
-
setterPropertyInjection
-
setterBeanInjection
-
setterInjection
-
afterInit
public Object afterInit(Object bean, String beanName, org.apache.aries.blueprint.BeanProcessor.BeanCreator beanCreator, org.osgi.service.blueprint.reflect.BeanMetadata beanMetadata) - Specified by:
afterInitin interfaceorg.apache.aries.blueprint.BeanProcessor
-
beforeDestroy
- Specified by:
beforeDestroyin interfaceorg.apache.aries.blueprint.BeanProcessor
-
afterDestroy
- Specified by:
afterDestroyin interfaceorg.apache.aries.blueprint.BeanProcessor
-
isSingleton
- Overrides:
isSingletonin classorg.apache.camel.impl.engine.CamelPostProcessorHelper
-