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