Package org.jboss.weld.injection.spi
Interface InjectionContext<T>
-
public interface InjectionContext<T>The context in which instance injection occurs.- Author:
- Pete Muir
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.enterprise.inject.spi.AnnotatedType<T>getAnnotatedType()Get theAnnotatedTypefor the instance being injectedjavax.enterprise.inject.spi.InjectionTarget<T>getInjectionTarget()Get theInjectionTargetfor the instance being injectedTgetTarget()Get the underlying instance to be injected.voidproceed()Callingproceed()will cause Weld to perform injection on the instance as it normally would.
-
-
-
Method Detail
-
proceed
void proceed()
-
getTarget
T getTarget()
Get the underlying instance to be injected. If the instance being injected is an EJB this will be whatever is returned bySessionObjectReference.getBusinessObject(Class)- Returns:
- the underlying instance to be injected
-
getInjectionTarget
javax.enterprise.inject.spi.InjectionTarget<T> getInjectionTarget()
Get theInjectionTargetfor the instance being injected- Returns:
- the
InjectionTargetfor the instance being injected
-
getAnnotatedType
javax.enterprise.inject.spi.AnnotatedType<T> getAnnotatedType()
Get theAnnotatedTypefor the instance being injected- Returns:
- the
AnnotatedTypefor the instance being injected
-
-