Package org.jboss.weld.interceptor.proxy
Class InterceptionContext
java.lang.Object
org.jboss.weld.interceptor.proxy.InterceptionContext
- All Implemented Interfaces:
Serializable
Holds interceptor metadata and interceptor instances throughout the lifecycle of the intercepted instance.
- Author:
- Jozef Hartinger, Martin Kouba
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuildInterceptorMethodInvocations(Object instance, Method method, InterceptionType interceptionType) static InterceptionContextforConstructorInterception(InterceptionModel interceptionModel, jakarta.enterprise.context.spi.CreationalContext<?> ctx, BeanManagerImpl manager, SlimAnnotatedType<?> type) The context returned by this method may be later reused for other interception types.static InterceptionContextforNonConstructorInterception(InterceptionModel interceptionModel, jakarta.enterprise.context.spi.CreationalContext<?> ctx, BeanManagerImpl manager, SlimAnnotatedType<?> type) <T> TgetInterceptorInstance(InterceptorClassMetadata<T> interceptorMetadata)
-
Method Details
-
forConstructorInterception
public static InterceptionContext forConstructorInterception(InterceptionModel interceptionModel, jakarta.enterprise.context.spi.CreationalContext<?> ctx, BeanManagerImpl manager, SlimAnnotatedType<?> type) The context returned by this method may be later reused for other interception types.- Parameters:
interceptionModel-ctx-manager-type-- Returns:
- the interception context to be used for the AroundConstruct chain
-
forNonConstructorInterception
public static InterceptionContext forNonConstructorInterception(InterceptionModel interceptionModel, jakarta.enterprise.context.spi.CreationalContext<?> ctx, BeanManagerImpl manager, SlimAnnotatedType<?> type) -
getInterceptionModel
-
getInterceptorInstance
-
buildInterceptorMethodInvocations
public List<InterceptorMethodInvocation> buildInterceptorMethodInvocations(Object instance, Method method, InterceptionType interceptionType) -
buildInterceptorMethodInvocationsForConstructorInterception
public List<InterceptorMethodInvocation> buildInterceptorMethodInvocationsForConstructorInterception()
-