Package org.jboss.weld.interceptor
Interface WeldInvocationContext
- All Superinterfaces:
InvocationContext
Represents an enhanced version of
InvocationContext.- Author:
- Martin Kouba
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA key value under which we store interceptor bindings inInvocationContext -
Method Summary
Modifier and TypeMethodDescriptionReturn 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.Methods inherited from interface jakarta.interceptor.InvocationContext
getConstructor, getContextData, getMethod, getParameters, getTarget, getTimer, proceed, setParameters
-
Field Details
-
INTERCEPTOR_BINDINGS_KEY
A key value under which we store interceptor bindings inInvocationContext- See Also:
-
-
Method Details
-
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
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:
-