|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InjectionPoint
Provides access to metadata about the injection point into which a dependent object is injected.
Method Summary | ||
---|---|---|
|
getAnnotation(java.lang.Class<T> annotationType)
Get the annotation instance for the given annotation type of the field in the case of field injection, or annotations of the parameter in the case of method parameter or constructor parameter injection. |
|
java.lang.annotation.Annotation[] |
getAnnotations()
Get the annotations of the field in the case of field injection, or annotations of the parameter in the case of method parameter or constructor parameter injection. |
|
Bean<?> |
getBean()
Get the Bean object representing the Web Bean that defines the injection point |
|
java.util.Set<java.lang.annotation.Annotation> |
getBindings()
Get the declared binding types of the injection point If the injection point is declared in XML, the type and binding types are determined according to Section 10.8, ÒSpecifying API types and binding typesÓ. |
|
java.lang.reflect.Member |
getMember()
Get the Field object in the case of field injection, the Method object in the case of method parameter injection or the Constructor object in the case of constructor parameter injection. |
|
java.lang.reflect.Type |
getType()
Get the declared type of injection point If the injection point is declared in XML, the type and binding types are determined according to Section 10.8, ÒSpecifying API types and binding typesÓ. |
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Determine if the specified annotation is present on the injection point |
Method Detail |
---|
java.lang.reflect.Type getType()
java.util.Set<java.lang.annotation.Annotation> getBindings()
Bean<?> getBean()
java.lang.reflect.Member getMember()
<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)
T
- the type of the annotationannotationType
- the type of the annotation
java.lang.annotation.Annotation[] getAnnotations()
boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- the type of the annotation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |