org.guiceyfruit.support
Interface AnnotationMemberProvider<A extends java.lang.annotation.Annotation>

All Known Implementing Classes:
AnnotationMemberProviderSupport, AutowiredMemberProvider, PersistenceMemberProvider, ResourceMemberProvider

public interface AnnotationMemberProvider<A extends java.lang.annotation.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:
$Revision: 1.1 $

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

Method Detail

provide

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


provide

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


isNullParameterAllowed

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



Copyright © 2011. All Rights Reserved.