Class InterceptorApplyingInstantiator<T>
- java.lang.Object
-
- org.jboss.weld.injection.producer.ForwardingInstantiator<T>
-
- org.jboss.weld.injection.producer.InterceptorApplyingInstantiator<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
Instantiator<T>
public class InterceptorApplyingInstantiator<T> extends ForwardingInstantiator<T>
A wrapper overSubclassedComponentInstantiator
that registers interceptors within the method handler. This class is thread-safe.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description InterceptorApplyingInstantiator(Instantiator<T> delegate, InterceptionModel model, SlimAnnotatedType<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
applyInterceptors(T instance, InterceptionContext interceptionContext)
boolean
hasInterceptorSupport()
Indicates whether instances created by this Instantiator support interception.T
newInstance(jakarta.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager)
String
toString()
-
Methods inherited from class org.jboss.weld.injection.producer.ForwardingInstantiator
delegate, getConstructor, hasDecoratorSupport
-
-
-
-
Constructor Detail
-
InterceptorApplyingInstantiator
public InterceptorApplyingInstantiator(Instantiator<T> delegate, InterceptionModel model, SlimAnnotatedType<T> type)
-
-
Method Detail
-
newInstance
public T newInstance(jakarta.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager)
- Specified by:
newInstance
in interfaceInstantiator<T>
- Overrides:
newInstance
in classForwardingInstantiator<T>
-
applyInterceptors
protected T applyInterceptors(T instance, InterceptionContext interceptionContext)
-
hasInterceptorSupport
public boolean hasInterceptorSupport()
Description copied from interface:Instantiator
Indicates whether instances created by this Instantiator support interception.- Specified by:
hasInterceptorSupport
in interfaceInstantiator<T>
- Overrides:
hasInterceptorSupport
in classForwardingInstantiator<T>
-
-