org.apache.webbeans.portable
Class InjectionTargetImpl<T>

java.lang.Object
  extended by org.apache.webbeans.portable.AbstractProducer<T>
      extended by org.apache.webbeans.portable.InjectionTargetImpl<T>
All Implemented Interfaces:
InjectionTarget<T>, Producer<T>
Direct Known Subclasses:
AbstractDecoratorInjectionTarget, AbstractEjbInjectionTarget, ConversationProducer

public class InjectionTargetImpl<T>
extends AbstractProducer<T>
implements InjectionTarget<T>


Field Summary
protected  AnnotatedType<T> annotatedType
           
protected  AnnotatedConstructor<T> constructor
           
protected  WebBeansContext webBeansContext
           
 
Constructor Summary
InjectionTargetImpl(AnnotatedType<T> annotatedType, Set<InjectionPoint> points, WebBeansContext webBeansContext, List<AnnotatedMethod<?>> postConstructMethods, List<AnnotatedMethod<?>> preDestroyMethods)
           
 
Method Summary
protected  AnnotatedConstructor<T> createConstructor()
           
protected  void defineLifecycleInterceptors(Bean<T> bean, AnnotatedType<T> annotatedType, WebBeansContext webBeansContext)
           
protected  AnnotatedConstructor<T> getConstructor()
           
protected  boolean hasAroundConstruct()
           
 void inject(T instance, CreationalContext<T> context)
           
protected  boolean needsProxy()
           
protected  T newInstance(CreationalContextImpl<T> creationalContext)
           
 void postConstruct(T instance)
           
 void preDestroy(T instance)
           
 T produce(Map<Interceptor<?>,?> interceptorInstances, CreationalContextImpl<T> creationalContext)
           
 
Methods inherited from class org.apache.webbeans.portable.AbstractProducer
defineInterceptorStack, dispose, getInjectionPoints, getInterceptorInfo, getMethodInterceptors, getProxyFactory, hasInterceptorInfo, isDelegateInjection, produce, unwrapProxyInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.enterprise.inject.spi.Producer
dispose, getInjectionPoints, produce
 

Field Detail

webBeansContext

protected final WebBeansContext webBeansContext

annotatedType

protected final AnnotatedType<T> annotatedType

constructor

protected volatile AnnotatedConstructor<T> constructor
Constructor Detail

InjectionTargetImpl

public InjectionTargetImpl(AnnotatedType<T> annotatedType,
                           Set<InjectionPoint> points,
                           WebBeansContext webBeansContext,
                           List<AnnotatedMethod<?>> postConstructMethods,
                           List<AnnotatedMethod<?>> preDestroyMethods)
Method Detail

defineLifecycleInterceptors

protected void defineLifecycleInterceptors(Bean<T> bean,
                                           AnnotatedType<T> annotatedType,
                                           WebBeansContext webBeansContext)
Overrides:
defineLifecycleInterceptors in class AbstractProducer<T>

produce

public T produce(Map<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,
                   CreationalContext<T> context)
Specified by:
inject in interface InjectionTarget<T>

postConstruct

public void postConstruct(T instance)
Specified by:
postConstruct in interface InjectionTarget<T>

preDestroy

public void preDestroy(T instance)
Specified by:
preDestroy in interface InjectionTarget<T>

getConstructor

protected AnnotatedConstructor<T> getConstructor()

createConstructor

protected AnnotatedConstructor<T> createConstructor()


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.