Package org.jboss.weld.interceptor
Interface WeldInvocationContext
-
- All Superinterfaces:
javax.interceptor.InvocationContext
- All Known Implementing Classes:
SimpleInvocationContext,WeldInvocationContextImpl
public interface WeldInvocationContext extends javax.interceptor.InvocationContextRepresents an enhanced version ofInvocationContext.- Author:
- Martin Kouba
- See Also:
- CDI-468
-
-
Field Summary
Fields Modifier and Type Field Description static StringINTERCEPTOR_BINDINGS_KEYA key value under which we store interceptor bindings inInvocationContext
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<Annotation>getInterceptorBindings()Return the set of interceptor bindings for a lifecycle callback, business method, timeout method, or constructor.<T extends Annotation>
Set<T>getInterceptorBindingsByType(Class<T> annotationType)Return the set of interceptor bindings with the specified annotation type.
-
-
-
Field Detail
-
INTERCEPTOR_BINDINGS_KEY
static final String INTERCEPTOR_BINDINGS_KEY
A key value under which we store interceptor bindings inInvocationContext- See Also:
- Constant Field Values
-
-
Method Detail
-
getInterceptorBindings
Set<Annotation> getInterceptorBindings()
Return the set of interceptor bindings for a lifecycle callback, business method, timeout method, or constructor.The returned set may be empty if only interceptors using the
Interceptorsannotation are associated.- Returns:
- a set of interceptor bindings
-
getInterceptorBindingsByType
<T extends Annotation> Set<T> getInterceptorBindingsByType(Class<T> annotationType)
Return the set of interceptor bindings with the specified annotation type.- Type Parameters:
T- subclass ofAnnotation- Parameters:
annotationType- type of annotation- Returns:
- a set of interceptor bindings with the specified annotation type
- See Also:
getInterceptorBindings()
-
-