Interface InjectionContext<T>


public interface InjectionContext<T>
The context in which instance injection occurs.
Author:
Pete Muir
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.enterprise.inject.spi.AnnotatedType<T>
    Get the AnnotatedType for the instance being injected
    jakarta.enterprise.inject.spi.InjectionTarget<T>
    Get the InjectionTarget for the instance being injected
    Get the underlying instance to be injected.
    void
    Calling proceed() will cause Weld to perform injection on the instance as it normally would.
  • Method Details

    • proceed

      void proceed()
      Calling proceed() will cause Weld to perform injection on the instance as it normally would. It is legal to not call proceed(), however the container must ensure all injection, including CDI-style Inject injection is done.
    • getTarget

      T getTarget()
      Get the underlying instance to be injected. If the instance being injected is an EJB this will be whatever is returned by SessionObjectReference.getBusinessObject(Class)
      Returns:
      the underlying instance to be injected
    • getInjectionTarget

      jakarta.enterprise.inject.spi.InjectionTarget<T> getInjectionTarget()
      Get the InjectionTarget for the instance being injected
      Returns:
      the InjectionTarget for the instance being injected
    • getAnnotatedType

      jakarta.enterprise.inject.spi.AnnotatedType<T> getAnnotatedType()
      Get the AnnotatedType for the instance being injected
      Returns:
      the AnnotatedType for the instance being injected