Interface JCDIService.JCDIInjectionContext<T>

  • Enclosing interface:
    JCDIService

    public static interface JCDIService.JCDIInjectionContext<T>
    • Method Detail

      • getInstance

        T getInstance()
        Returns:
        The instance associated with this context.
      • setInstance

        void setInstance​(T instance)
        Set the instance on this context
        Parameters:
        instance - The instance to set.
      • cleanup

        void cleanup​(boolean callPreDestroy)
      • getInjectionTarget

        jakarta.enterprise.inject.spi.InjectionTarget<T> getInjectionTarget()
        Returns:
        The injection target.
      • setInjectionTarget

        void setInjectionTarget​(jakarta.enterprise.inject.spi.InjectionTarget<T> injectionTarget)
        Set the injection target.
        Parameters:
        injectionTarget - The injection target to set.
      • getCreationalContext

        jakarta.enterprise.context.spi.CreationalContext<T> getCreationalContext()
        Returns:
        The creational context.
      • setCreationalContext

        void setCreationalContext​(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
        Set the creational context.
        Parameters:
        creationalContext - The creational context.
      • addDependentContext

        void addDependentContext​(JCDIService.JCDIInjectionContext<T> dependentContext)
        Add a dependent context to this context so that the dependent context can be cleaned up when this one is.
        Parameters:
        dependentContext - The dependenct context.
      • createEjbAfterAroundConstruct

        T createEjbAfterAroundConstruct()
        Create the EJB and perform constructor injection, if applicable. This should only happen when the last interceptor method in the AroundConstruct interceptor chain invokes the InvocationContext.proceed method. If the InvocationContext.proceed method is not invoked by an interceptor method, the target instance will not be created.
        Returns:
        ejb