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 overSubclassedComponentInstantiatorthat 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 TapplyInterceptors(T instance, InterceptionContext interceptionContext)booleanhasInterceptorSupport()Indicates whether instances created by this Instantiator support interception.TnewInstance(CreationalContext<T> ctx, BeanManagerImpl manager)StringtoString()-
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(CreationalContext<T> ctx, BeanManagerImpl manager)
- Specified by:
newInstancein interfaceInstantiator<T>- Overrides:
newInstancein classForwardingInstantiator<T>
-
applyInterceptors
protected T applyInterceptors(T instance, InterceptionContext interceptionContext)
-
hasInterceptorSupport
public boolean hasInterceptorSupport()
Description copied from interface:InstantiatorIndicates whether instances created by this Instantiator support interception.- Specified by:
hasInterceptorSupportin interfaceInstantiator<T>- Overrides:
hasInterceptorSupportin classForwardingInstantiator<T>
-
-