org.apache.camel.guice.support
Interface AnnotationMemberProvider<A extends Annotation>

All Known Implementing Classes:
AnnotationMemberProviderSupport, EndpointInjector, NamedProviderSupport, ProduceInjector, ResourceMemberProvider

public interface AnnotationMemberProvider<A extends Annotation>

A provider of an annotation based injection point which can use the value of an annotation together with the member on which the annotation is placed to determine the value.

Version:

Method Summary
 boolean isNullParameterAllowed(A annotation, Method method, Class<?> parameterType, int parameterIndex)
          Returns true if the given parameter on the annotated method can be null
 Object provide(A annotation, com.google.inject.TypeLiteral<?> type, Field field)
          Returns the value to be injected for the given annotated field
 Object provide(A annotation, com.google.inject.TypeLiteral<?> type, Method method, Class<?> parameterType, int parameterIndex)
          Returns the value to be injected for the given annotated method parameter value
 

Method Detail

provide

Object provide(A annotation,
               com.google.inject.TypeLiteral<?> type,
               Field field)
Returns the value to be injected for the given annotated field


provide

Object provide(A annotation,
               com.google.inject.TypeLiteral<?> type,
               Method method,
               Class<?> parameterType,
               int parameterIndex)
Returns the value to be injected for the given annotated method parameter value


isNullParameterAllowed

boolean isNullParameterAllowed(A annotation,
                               Method method,
                               Class<?> parameterType,
                               int parameterIndex)
Returns true if the given parameter on the annotated method can be null



Apache Camel