org.apache.camel.guice.impl
Class EndpointInjector

java.lang.Object
  extended by org.apache.camel.impl.CamelPostProcessorHelper
      extended by org.apache.camel.guice.impl.EndpointInjector
All Implemented Interfaces:
org.apache.camel.CamelContextAware, AnnotationMemberProvider<org.apache.camel.EndpointInject>

public class EndpointInjector
extends org.apache.camel.impl.CamelPostProcessorHelper
implements AnnotationMemberProvider<org.apache.camel.EndpointInject>

Injects values into the EndpointInject injection point

Version:

Constructor Summary
EndpointInjector(org.apache.camel.CamelContext camelContext)
           
 
Method Summary
 boolean isNullParameterAllowed(org.apache.camel.EndpointInject endpointInject, Method method, Class<?> aClass, int index)
          Returns true if the given parameter on the annotated method can be null
 Object provide(org.apache.camel.EndpointInject inject, com.google.inject.TypeLiteral<?> typeLiteral, Field field)
          Returns the value to be injected for the given annotated field
 Object provide(org.apache.camel.EndpointInject inject, com.google.inject.TypeLiteral<?> typeLiteral, Method method, Class<?> aClass, int index)
          Returns the value to be injected for the given annotated method parameter value
 
Methods inherited from class org.apache.camel.impl.CamelPostProcessorHelper
consumerInjection, createConsumerProcessor, createInjectionConsumerTemplate, createInjectionPollingConsumer, createInjectionProducer, createInjectionProducerTemplate, createProxyInstantiationRuntimeException, getCamelContext, getEndpointInjection, getInjectionBeanValue, getInjectionPropertyValue, getInjectionValue, isSingleton, matchContext, setCamelContext, startService, subscribeMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointInjector

@Inject
public EndpointInjector(org.apache.camel.CamelContext camelContext)
Method Detail

provide

public Object provide(org.apache.camel.EndpointInject inject,
                      com.google.inject.TypeLiteral<?> typeLiteral,
                      Field field)
Description copied from interface: AnnotationMemberProvider
Returns the value to be injected for the given annotated field

Specified by:
provide in interface AnnotationMemberProvider<org.apache.camel.EndpointInject>

provide

public Object provide(org.apache.camel.EndpointInject inject,
                      com.google.inject.TypeLiteral<?> typeLiteral,
                      Method method,
                      Class<?> aClass,
                      int index)
Description copied from interface: AnnotationMemberProvider
Returns the value to be injected for the given annotated method parameter value

Specified by:
provide in interface AnnotationMemberProvider<org.apache.camel.EndpointInject>

isNullParameterAllowed

public boolean isNullParameterAllowed(org.apache.camel.EndpointInject endpointInject,
                                      Method method,
                                      Class<?> aClass,
                                      int index)
Description copied from interface: AnnotationMemberProvider
Returns true if the given parameter on the annotated method can be null

Specified by:
isNullParameterAllowed in interface AnnotationMemberProvider<org.apache.camel.EndpointInject>


Apache Camel