Class InjectionTargetImpl<T>

java.lang.Object
org.apache.webbeans.portable.AbstractProducer<T>
org.apache.webbeans.portable.InjectionTargetImpl<T>
All Implemented Interfaces:
jakarta.enterprise.inject.spi.InjectionTarget<T>, jakarta.enterprise.inject.spi.Producer<T>
Direct Known Subclasses:
AbstractDecoratorInjectionTarget, AbstractEjbInjectionTarget, ConversationProducer, LazyInterceptorDefinedInjectionTarget

public class InjectionTargetImpl<T> extends AbstractProducer<T> implements jakarta.enterprise.inject.spi.InjectionTarget<T>
  • Field Details

    • webBeansContext

      protected final WebBeansContext webBeansContext
    • annotatedType

      protected final jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType
    • constructor

      protected volatile jakarta.enterprise.inject.spi.AnnotatedConstructor<T> constructor
  • Constructor Details

    • InjectionTargetImpl

      public InjectionTargetImpl(jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType, Set<jakarta.enterprise.inject.spi.InjectionPoint> injectionPoints, WebBeansContext webBeansContext, List<jakarta.enterprise.inject.spi.AnnotatedMethod<?>> postConstructMethods, List<jakarta.enterprise.inject.spi.AnnotatedMethod<?>> preDestroyMethods)
  • Method Details

    • defineLifecycleInterceptors

      protected void defineLifecycleInterceptors(jakarta.enterprise.inject.spi.Bean<T> bean, jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType, WebBeansContext webBeansContext)
      Overrides:
      defineLifecycleInterceptors in class AbstractProducer<T>
    • produce

      public T produce(Map<jakarta.enterprise.inject.spi.Interceptor<?>,?> interceptorInstances, CreationalContextImpl<T> creationalContext)
      Specified by:
      produce in class AbstractProducer<T>
    • needsProxy

      protected boolean needsProxy()
      Overrides:
      needsProxy in class AbstractProducer<T>
    • hasAroundConstruct

      protected boolean hasAroundConstruct()
    • newInstance

      protected T newInstance(CreationalContextImpl<T> creationalContext)
    • inject

      public void inject(T instance, jakarta.enterprise.context.spi.CreationalContext<T> context)
      Specified by:
      inject in interface jakarta.enterprise.inject.spi.InjectionTarget<T>
    • postConstruct

      public void postConstruct(T instance)
      Specified by:
      postConstruct in interface jakarta.enterprise.inject.spi.InjectionTarget<T>
    • preDestroy

      public void preDestroy(T instance)
      Specified by:
      preDestroy in interface jakarta.enterprise.inject.spi.InjectionTarget<T>
    • getConstructor

      protected jakarta.enterprise.inject.spi.AnnotatedConstructor<T> getConstructor()
    • createConstructor

      protected jakarta.enterprise.inject.spi.AnnotatedConstructor<T> createConstructor()