public class InjectionTargetImpl<T> extends AbstractProducer<T> implements javax.enterprise.inject.spi.InjectionTarget<T>
Modifier and Type | Field and Description |
---|---|
protected javax.enterprise.inject.spi.AnnotatedType<T> |
annotatedType |
protected javax.enterprise.inject.spi.AnnotatedConstructor<T> |
constructor |
protected WebBeansContext |
webBeansContext |
Constructor and Description |
---|
InjectionTargetImpl(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
Set<javax.enterprise.inject.spi.InjectionPoint> points,
WebBeansContext webBeansContext,
List<javax.enterprise.inject.spi.AnnotatedMethod<?>> postConstructMethods,
List<javax.enterprise.inject.spi.AnnotatedMethod<?>> preDestroyMethods) |
Modifier and Type | Method and Description |
---|---|
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) |
defineInterceptorStack, dispose, getInjectionPoints, getInterceptorInfo, getMethodInterceptors, getProxyFactory, hasInterceptorInfo, isDelegateInjection, produce, unwrapProxyInstance
protected final WebBeansContext webBeansContext
protected final javax.enterprise.inject.spi.AnnotatedType<T> annotatedType
protected volatile javax.enterprise.inject.spi.AnnotatedConstructor<T> constructor
public InjectionTargetImpl(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, Set<javax.enterprise.inject.spi.InjectionPoint> points, WebBeansContext webBeansContext, List<javax.enterprise.inject.spi.AnnotatedMethod<?>> postConstructMethods, List<javax.enterprise.inject.spi.AnnotatedMethod<?>> preDestroyMethods)
protected void defineLifecycleInterceptors(javax.enterprise.inject.spi.Bean<T> bean, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, WebBeansContext webBeansContext)
defineLifecycleInterceptors
in class AbstractProducer<T>
public T produce(Map<javax.enterprise.inject.spi.Interceptor<?>,?> interceptorInstances, CreationalContextImpl<T> creationalContext)
produce
in class AbstractProducer<T>
protected boolean needsProxy()
needsProxy
in class AbstractProducer<T>
protected boolean hasAroundConstruct()
protected T newInstance(CreationalContextImpl<T> creationalContext)
public void inject(T instance, javax.enterprise.context.spi.CreationalContext<T> context)
inject
in interface javax.enterprise.inject.spi.InjectionTarget<T>
public void postConstruct(T instance)
postConstruct
in interface javax.enterprise.inject.spi.InjectionTarget<T>
public void preDestroy(T instance)
preDestroy
in interface javax.enterprise.inject.spi.InjectionTarget<T>
protected javax.enterprise.inject.spi.AnnotatedConstructor<T> getConstructor()
protected javax.enterprise.inject.spi.AnnotatedConstructor<T> createConstructor()
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.