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:
javax.enterprise.inject.spi.InjectionTarget<T>, javax.enterprise.inject.spi.Producer<T>
Direct Known Subclasses:
AbstractDecoratorInjectionTarget, AbstractEjbInjectionTarget, ConversationProducer, LazyInterceptorDefinedInjectionTarget

public class InjectionTargetImpl<T>
extends AbstractProducer<T>
implements javax.enterprise.inject.spi.InjectionTarget<T>


Field Summary
protected  javax.enterprise.inject.spi.AnnotatedType<T> annotatedType
           
protected  javax.enterprise.inject.spi.AnnotatedConstructor<T> constructor
           
protected  WebBeansContext webBeansContext
           
 
Fields inherited from class org.apache.webbeans.portable.AbstractProducer
injectionPoints, interceptorInfo, methodInterceptors, passivationId, proxyClass, proxyFactory
 
Constructor Summary
InjectionTargetImpl(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, Set<javax.enterprise.inject.spi.InjectionPoint> injectionPoints, WebBeansContext webBeansContext, List<javax.enterprise.inject.spi.AnnotatedMethod<?>> postConstructMethods, List<javax.enterprise.inject.spi.AnnotatedMethod<?>> preDestroyMethods)
           
 
Method Summary
protected  javax.enterprise.inject.spi.AnnotatedConstructor<T> createConstructor()
           
protected  void defineLifecycleInterceptors(javax.enterprise.inject.spi.Bean<T> bean, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, WebBeansContext webBeansContext)
           
protected  javax.enterprise.inject.spi.AnnotatedConstructor<T> getConstructor()
           
protected  boolean hasAroundConstruct()
           
 void inject(T instance, javax.enterprise.context.spi.CreationalContext<T> context)
           
protected  boolean needsProxy()
           
protected  T newInstance(CreationalContextImpl<T> creationalContext)
           
 void postConstruct(T instance)
           
 void preDestroy(T instance)
           
 T produce(Map<javax.enterprise.inject.spi.Interceptor<?>,?> interceptorInstances, CreationalContextImpl<T> creationalContext)
           
 
Methods inherited from class org.apache.webbeans.portable.AbstractProducer
createInterceptorInstances, defineInterceptorStack, dispose, filterDecorators, 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 javax.enterprise.inject.spi.AnnotatedType<T> annotatedType

constructor

protected volatile javax.enterprise.inject.spi.AnnotatedConstructor<T> constructor
Constructor Detail

InjectionTargetImpl

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

defineLifecycleInterceptors

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

produce

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

postConstruct

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

preDestroy

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

getConstructor

protected javax.enterprise.inject.spi.AnnotatedConstructor<T> getConstructor()

createConstructor

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


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