Package io.quarkus.arc
Interface ArcInvocationContext
- All Superinterfaces:
jakarta.interceptor.InvocationContext
public interface ArcInvocationContext
extends jakarta.interceptor.InvocationContext
Enhanced version of
InvocationContext
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
This key can be used to obtain the interceptor bindings from the context data. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Annotation>
TfindIterceptorBinding
(jakarta.interceptor.InvocationContext context, Class<T> annotationType) <T extends Annotation>
TfindIterceptorBinding
(Class<T> annotationType) static <T extends Annotation>
List<T>findIterceptorBindings
(jakarta.interceptor.InvocationContext context, Class<T> annotationType) <T extends Annotation>
List<T>findIterceptorBindings
(Class<T> annotationType) Methods inherited from interface jakarta.interceptor.InvocationContext
getConstructor, getContextData, getMethod, getParameters, getTarget, getTimer, proceed, setParameters
-
Field Details
-
KEY_INTERCEPTOR_BINDINGS
This key can be used to obtain the interceptor bindings from the context data.- See Also:
-
-
Method Details
-
getInterceptorBindings
Set<Annotation> getInterceptorBindings()- Returns:
- the interceptor bindings
-
findIterceptorBinding
- Parameters:
annotationType
-- Returns:
- the first interceptor binding found, or
null
-
findIterceptorBindings
- Parameters:
annotationType
-- Returns:
- the list of interceptor bindings of the given annotation type
-
findIterceptorBinding
static <T extends Annotation> T findIterceptorBinding(jakarta.interceptor.InvocationContext context, Class<T> annotationType) - Parameters:
context
-annotationType
-- Returns:
- the first interceptor binding found, or
null
-
findIterceptorBindings
static <T extends Annotation> List<T> findIterceptorBindings(jakarta.interceptor.InvocationContext context, Class<T> annotationType) - Parameters:
context
-annotationType
-- Returns:
- the list of interceptor bindings of the given annotation type
-