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>
A wrapper over
SubclassedComponentInstantiator that registers interceptors within the method handler. This class is
thread-safe.- Author:
- Jozef Hartinger
-
Constructor Summary
ConstructorsConstructorDescriptionInterceptorApplyingInstantiator(Instantiator<T> delegate, InterceptionModel model, SlimAnnotatedType<T> type) -
Method Summary
Modifier and TypeMethodDescriptionprotected TapplyInterceptors(T instance, InterceptionContext interceptionContext) booleanIndicates whether instances created by this Instantiator support interception.newInstance(jakarta.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager) toString()Methods inherited from class org.jboss.weld.injection.producer.ForwardingInstantiator
delegate, getConstructor, hasDecoratorSupport
-
Constructor Details
-
InterceptorApplyingInstantiator
public InterceptorApplyingInstantiator(Instantiator<T> delegate, InterceptionModel model, SlimAnnotatedType<T> type)
-
-
Method Details
-
newInstance
public T newInstance(jakarta.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager) - Specified by:
newInstancein interfaceInstantiator<T>- Overrides:
newInstancein classForwardingInstantiator<T>
-
applyInterceptors
-
toString
-
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>
-