org.jvnet.hk2.component
Interface InjectionPoint


public interface InjectionPoint

Used to describe the injection point and context of the injection.

Author:
Jeff Trent
See Also:
ContextualFactory

Method Summary
 java.lang.reflect.AnnotatedElement getAnnotatedElement()
          The member being injected
 java.lang.Object getComponent()
          The component instance being injected
 Inhabitant<?> getInhabitant()
          The inhabitant on behalf of the component being injected.
 org.jvnet.hk2.annotations.Inject getInject()
          The inject annotation (provided for convenience) to get name and/or optional flag, etc.
 java.lang.Class<?> getType()
          The type of the field that needs to be injected
 

Method Detail

getComponent

java.lang.Object getComponent()
The component instance being injected


getAnnotatedElement

java.lang.reflect.AnnotatedElement getAnnotatedElement()
The member being injected


getType

java.lang.Class<?> getType()
The type of the field that needs to be injected


getInject

org.jvnet.hk2.annotations.Inject getInject()
The inject annotation (provided for convenience) to get name and/or optional flag, etc.


getInhabitant

Inhabitant<?> getInhabitant()
The inhabitant on behalf of the component being injected. WARNING: DO NOT ATTEMPT TO ACTIVATE - this will cause a stack fault.



Copyright © 2011 Oracle Corporation. All Rights Reserved.