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() |
void |
dispose(T instance) |
protected javax.enterprise.inject.spi.AnnotatedConstructor<T> |
getConstructor() |
InterceptorResolutionService.BeanInterceptorInfo |
getInterceptorInfo() |
void |
inject(T instance,
javax.enterprise.context.spi.CreationalContext<T> context) |
protected boolean |
isDelegateInjection(javax.enterprise.context.spi.CreationalContext<?> cc) |
protected T |
newInstance(CreationalContextImpl<T> creationalContext) |
void |
postConstruct(T instance) |
void |
preDestroy(T instance) |
T |
produce(javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
void |
setInterceptorInfo(InterceptorResolutionService.BeanInterceptorInfo interceptorInfo,
Class<? extends T> proxyClass,
Map<Method,List<javax.enterprise.inject.spi.Interceptor<?>>> methodInterceptors,
List<javax.enterprise.inject.spi.Interceptor<?>> postConstructInterceptors,
List<javax.enterprise.inject.spi.Interceptor<?>> preDestroyInterceptors,
String beanPassivationId) |
protected T |
unwrapProxyInstance(T probableProxyInstance)
Helper method to unwrap the internal proxy instance.
|
getInjectionPoints
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)
public InterceptorResolutionService.BeanInterceptorInfo getInterceptorInfo()
public void setInterceptorInfo(InterceptorResolutionService.BeanInterceptorInfo interceptorInfo, Class<? extends T> proxyClass, Map<Method,List<javax.enterprise.inject.spi.Interceptor<?>>> methodInterceptors, List<javax.enterprise.inject.spi.Interceptor<?>> postConstructInterceptors, List<javax.enterprise.inject.spi.Interceptor<?>> preDestroyInterceptors, String beanPassivationId)
protected T unwrapProxyInstance(T probableProxyInstance)
public T produce(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
produce
in interface javax.enterprise.inject.spi.Producer<T>
protected boolean isDelegateInjection(javax.enterprise.context.spi.CreationalContext<?> cc)
protected T newInstance(CreationalContextImpl<T> creationalContext)
public void dispose(T instance)
dispose
in interface javax.enterprise.inject.spi.Producer<T>
dispose
in class AbstractProducer<T>
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.