org.apache.camel.blueprint.handler
Class CamelNamespaceHandler.CamelInjector
java.lang.Object
org.apache.camel.impl.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
- Enclosing class:
- CamelNamespaceHandler
public static class CamelNamespaceHandler.CamelInjector
- extends org.apache.camel.impl.CamelPostProcessorHelper
- implements org.apache.aries.blueprint.BeanProcessor
Nested classes/interfaces inherited from interface org.apache.aries.blueprint.BeanProcessor |
org.apache.aries.blueprint.BeanProcessor.BeanCreator |
Method Summary |
void |
afterDestroy(Object o,
String s)
|
Object |
afterInit(Object o,
String s,
org.apache.aries.blueprint.BeanProcessor.BeanCreator beanCreator,
org.osgi.service.blueprint.reflect.BeanMetadata beanMetadata)
|
void |
beforeDestroy(Object o,
String s)
|
Object |
beforeInit(Object bean,
String beanName,
org.apache.aries.blueprint.BeanProcessor.BeanCreator beanCreator,
org.osgi.service.blueprint.reflect.BeanMetadata beanMetadata)
|
org.apache.camel.CamelContext |
getCamelContext()
|
protected void |
injectField(Field field,
String endpointUri,
String endpointRef,
Object bean,
String beanName)
|
protected void |
injectFields(Object bean,
String beanName)
A strategy method to allow implementations to perform some custom JBI
based injection of the POJO |
protected void |
injectMethods(Object bean,
String beanName)
|
void |
setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer)
|
protected static void |
setField(Field field,
Object instance,
Object value)
|
protected void |
setterInjection(Method method,
Object bean,
String beanName)
|
protected void |
setterInjection(Method method,
Object bean,
String beanName,
String endpointUri,
String endpointRef)
|
Methods inherited from class org.apache.camel.impl.CamelPostProcessorHelper |
consumerInjection, createConsumerProcessor, createInjectionConsumerTemplate, createInjectionPollingConsumer, createInjectionProducer, createInjectionProducerTemplate, createProxyInstantiationRuntimeException, getEndpointInjection, getInjectionValue, isSingleton, matchContext, setCamelContext, startService, subscribeMethod |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CamelNamespaceHandler.CamelInjector
public CamelNamespaceHandler.CamelInjector(String camelContextName)
setBlueprintContainer
public void setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer)
beforeInit
public Object beforeInit(Object bean,
String beanName,
org.apache.aries.blueprint.BeanProcessor.BeanCreator beanCreator,
org.osgi.service.blueprint.reflect.BeanMetadata beanMetadata)
- Specified by:
beforeInit
in interface org.apache.aries.blueprint.BeanProcessor
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContext
in interface org.apache.camel.CamelContextAware
- Overrides:
getCamelContext
in class org.apache.camel.impl.CamelPostProcessorHelper
injectFields
protected void injectFields(Object bean,
String beanName)
- A strategy method to allow implementations to perform some custom JBI
based injection of the POJO
- Parameters:
bean
- the bean to be injected
injectField
protected void injectField(Field field,
String endpointUri,
String endpointRef,
Object bean,
String beanName)
setField
protected static void setField(Field field,
Object instance,
Object value)
injectMethods
protected void injectMethods(Object bean,
String beanName)
setterInjection
protected void setterInjection(Method method,
Object bean,
String beanName)
setterInjection
protected void setterInjection(Method method,
Object bean,
String beanName,
String endpointUri,
String endpointRef)
afterInit
public Object afterInit(Object o,
String s,
org.apache.aries.blueprint.BeanProcessor.BeanCreator beanCreator,
org.osgi.service.blueprint.reflect.BeanMetadata beanMetadata)
- Specified by:
afterInit
in interface org.apache.aries.blueprint.BeanProcessor
beforeDestroy
public void beforeDestroy(Object o,
String s)
- Specified by:
beforeDestroy
in interface org.apache.aries.blueprint.BeanProcessor
afterDestroy
public void afterDestroy(Object o,
String s)
- Specified by:
afterDestroy
in interface org.apache.aries.blueprint.BeanProcessor
Apache CAMEL