javax.enterprise.inject.spi
Interface InjectionPoint


public interface InjectionPoint

Provides access to metadata about the injection point into which a dependent object is injected.

Author:
Gavin King, Pete Muir

Method Summary
 Annotated getAnnotated()
           
 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 isDelegate()
           
 boolean isTransient()
           
 

Method Detail

getType

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�.

Returns:
the declared type of the injection point

getBindings

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�.

Returns:
the declared binding types of the injection point

getBean

Bean<?> getBean()
Get the Bean object representing the Web Bean that defines the injection point

Returns:
the Bean object representing the Web Bean that defines the injection point

getMember

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.

Returns:
the member being injected into

getAnnotated

Annotated getAnnotated()

isDelegate

boolean isDelegate()

isTransient

boolean isTransient()


Copyright © 2008-2009. All Rights Reserved.