Package org.jboss.weld.interceptor.proxy
Class InterceptionContext
- java.lang.Object
-
- org.jboss.weld.interceptor.proxy.InterceptionContext
-
- All Implemented Interfaces:
Serializable
public class InterceptionContext extends Object implements Serializable
Holds interceptor metadata and interceptor instances throughout the lifecycle of the intercepted instance.- Author:
- Jozef Hartinger, Martin Kouba
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<InterceptorMethodInvocation>buildInterceptorMethodInvocations(Object instance, Method method, InterceptionType interceptionType)List<InterceptorMethodInvocation>buildInterceptorMethodInvocationsForConstructorInterception()static InterceptionContextforConstructorInterception(InterceptionModel interceptionModel, CreationalContext<?> ctx, BeanManagerImpl manager, SlimAnnotatedType<?> type)The context returned by this method may be later reused for other interception types.static InterceptionContextforNonConstructorInterception(InterceptionModel interceptionModel, CreationalContext<?> ctx, BeanManagerImpl manager, SlimAnnotatedType<?> type)InterceptionModelgetInterceptionModel()<T> TgetInterceptorInstance(InterceptorClassMetadata<T> interceptorMetadata)
-
-
-
Method Detail
-
forConstructorInterception
public static InterceptionContext forConstructorInterception(InterceptionModel interceptionModel, 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, CreationalContext<?> ctx, BeanManagerImpl manager, SlimAnnotatedType<?> type)
-
getInterceptionModel
public InterceptionModel getInterceptionModel()
-
getInterceptorInstance
public <T> T getInterceptorInstance(InterceptorClassMetadata<T> interceptorMetadata)
-
buildInterceptorMethodInvocations
public List<InterceptorMethodInvocation> buildInterceptorMethodInvocations(Object instance, Method method, InterceptionType interceptionType)
-
buildInterceptorMethodInvocationsForConstructorInterception
public List<InterceptorMethodInvocation> buildInterceptorMethodInvocationsForConstructorInterception()
-
-