public abstract class AbstractDecoratorApplyingInstantiator<T> extends ForwardingInstantiator<T>
SubclassDecoratorApplyingInstantiator
,
ProxyDecoratorApplyingSessionBeanInstantiator
Constructor and Description |
---|
AbstractDecoratorApplyingInstantiator(String contextId,
Instantiator<T> delegate,
javax.enterprise.inject.spi.Bean<T> bean,
List<javax.enterprise.inject.spi.Decorator<?>> decorators,
Class<? extends T> implementationClass) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
applyDecorators(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext,
javax.enterprise.inject.spi.InjectionPoint originalInjectionPoint,
BeanManagerImpl manager) |
javax.enterprise.inject.spi.Bean<T> |
getBean() |
List<javax.enterprise.inject.spi.Decorator<?>> |
getDecorators() |
protected T |
getOuterDelegate(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext,
javax.enterprise.inject.spi.InjectionPoint originalInjectionPoint,
BeanManagerImpl manager) |
Class<T> |
getProxyClass() |
boolean |
hasDecoratorSupport()
Indicates whether instances created by this Instantiator support decorators.
|
T |
newInstance(javax.enterprise.context.spi.CreationalContext<T> ctx,
BeanManagerImpl manager) |
protected void |
registerOuterDecorator(ProxyObject instance,
T outerDelegate) |
delegate, getConstructor, hasInterceptorSupport
public T newInstance(javax.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager)
newInstance
in interface Instantiator<T>
newInstance
in class ForwardingInstantiator<T>
protected abstract T applyDecorators(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext, javax.enterprise.inject.spi.InjectionPoint originalInjectionPoint, BeanManagerImpl manager)
protected T getOuterDelegate(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext, javax.enterprise.inject.spi.InjectionPoint originalInjectionPoint, BeanManagerImpl manager)
protected void registerOuterDecorator(ProxyObject instance, T outerDelegate)
public javax.enterprise.inject.spi.Bean<T> getBean()
public List<javax.enterprise.inject.spi.Decorator<?>> getDecorators()
public boolean hasDecoratorSupport()
Instantiator
hasDecoratorSupport
in interface Instantiator<T>
hasDecoratorSupport
in class ForwardingInstantiator<T>
Copyright © 2016. All rights reserved.