public abstract class AbstractProducer<T> extends Object implements javax.enterprise.inject.spi.Producer<T>
Constructor and Description |
---|
AbstractProducer() |
AbstractProducer(Set<javax.enterprise.inject.spi.InjectionPoint> points) |
Modifier and Type | Method and Description |
---|---|
void |
defineInterceptorStack(javax.enterprise.inject.spi.Bean<T> bean,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
WebBeansContext webBeansContext)
Configure bean instance interceptor stack.
|
protected void |
defineLifecycleInterceptors(javax.enterprise.inject.spi.Bean<T> bean,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
WebBeansContext webBeansContext) |
void |
dispose(T instance) |
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
InterceptorResolutionService.BeanInterceptorInfo |
getInterceptorInfo() |
protected Map<Method,List<javax.enterprise.inject.spi.Interceptor<?>>> |
getMethodInterceptors() |
protected InterceptorDecoratorProxyFactory |
getProxyFactory() |
protected boolean |
hasInterceptorInfo() |
protected boolean |
isDelegateInjection(CreationalContextImpl<?> cc) |
protected boolean |
needsProxy() |
T |
produce(javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
protected abstract T |
produce(Map<javax.enterprise.inject.spi.Interceptor<?>,?> interceptorInstances,
CreationalContextImpl<T> creationalContext) |
protected T |
unwrapProxyInstance(T probableProxyInstance)
Helper method to unwrap the internal proxy instance.
|
public AbstractProducer()
public AbstractProducer(Set<javax.enterprise.inject.spi.InjectionPoint> points)
public void defineInterceptorStack(javax.enterprise.inject.spi.Bean<T> bean, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, WebBeansContext webBeansContext)
public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface javax.enterprise.inject.spi.Producer<T>
public InterceptorResolutionService.BeanInterceptorInfo getInterceptorInfo()
public T produce(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
produce
in interface javax.enterprise.inject.spi.Producer<T>
public void dispose(T instance)
dispose
in interface javax.enterprise.inject.spi.Producer<T>
protected abstract T produce(Map<javax.enterprise.inject.spi.Interceptor<?>,?> interceptorInstances, CreationalContextImpl<T> creationalContext)
protected InterceptorDecoratorProxyFactory getProxyFactory()
protected Map<Method,List<javax.enterprise.inject.spi.Interceptor<?>>> getMethodInterceptors()
protected boolean needsProxy()
protected boolean hasInterceptorInfo()
protected boolean isDelegateInjection(CreationalContextImpl<?> cc)
protected T unwrapProxyInstance(T probableProxyInstance)
protected void defineLifecycleInterceptors(javax.enterprise.inject.spi.Bean<T> bean, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, WebBeansContext webBeansContext)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.