Package io.quarkus.restclient.runtime
Class QuarkusInvocationContextImpl
- java.lang.Object
-
- io.quarkus.restclient.runtime.QuarkusInvocationContextImpl
-
- All Implemented Interfaces:
io.quarkus.arc.ArcInvocationContext
,jakarta.interceptor.InvocationContext
public class QuarkusInvocationContextImpl extends Object implements io.quarkus.arc.ArcInvocationContext
A Quarkus copy ofInvocationContextImpl
which makes it implementArcInvocationContext
instead so that it's compatible with Quarkus interceptors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QuarkusInvocationContextImpl.InterceptorInvocation
-
Constructor Summary
Constructors Constructor Description QuarkusInvocationContextImpl(Object target, Method method, Object[] args, List<QuarkusInvocationContextImpl.InterceptorInvocation> chain, Set<Annotation> interceptorBindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Annotation>
TfindIterceptorBinding(Class<T> annotationType)
<T extends Annotation>
List<T>findIterceptorBindings(Class<T> annotationType)
Constructor<?>
getConstructor()
Map<String,Object>
getContextData()
Set<Annotation>
getInterceptorBindings()
Method
getMethod()
Object[]
getParameters()
Object
getTarget()
Object
getTimer()
(package private) boolean
hasNextInterceptor()
protected Object
interceptorChainCompleted()
protected Object
invokeNext()
Object
proceed()
void
setParameters(Object[] params)
-
-
-
Constructor Detail
-
QuarkusInvocationContextImpl
public QuarkusInvocationContextImpl(Object target, Method method, Object[] args, List<QuarkusInvocationContextImpl.InterceptorInvocation> chain, Set<Annotation> interceptorBindings)
-
-
Method Detail
-
hasNextInterceptor
boolean hasNextInterceptor()
-
interceptorChainCompleted
protected Object interceptorChainCompleted() throws Exception
- Throws:
Exception
-
proceed
public Object proceed() throws Exception
- Specified by:
proceed
in interfacejakarta.interceptor.InvocationContext
- Throws:
Exception
-
getTarget
public Object getTarget()
- Specified by:
getTarget
in interfacejakarta.interceptor.InvocationContext
-
getMethod
public Method getMethod()
- Specified by:
getMethod
in interfacejakarta.interceptor.InvocationContext
-
getConstructor
public Constructor<?> getConstructor()
- Specified by:
getConstructor
in interfacejakarta.interceptor.InvocationContext
-
getParameters
public Object[] getParameters() throws IllegalStateException
- Specified by:
getParameters
in interfacejakarta.interceptor.InvocationContext
- Throws:
IllegalStateException
-
setParameters
public void setParameters(Object[] params) throws IllegalStateException, IllegalArgumentException
- Specified by:
setParameters
in interfacejakarta.interceptor.InvocationContext
- Throws:
IllegalStateException
IllegalArgumentException
-
getContextData
public Map<String,Object> getContextData()
- Specified by:
getContextData
in interfacejakarta.interceptor.InvocationContext
-
getTimer
public Object getTimer()
- Specified by:
getTimer
in interfacejakarta.interceptor.InvocationContext
-
getInterceptorBindings
public Set<Annotation> getInterceptorBindings()
- Specified by:
getInterceptorBindings
in interfaceio.quarkus.arc.ArcInvocationContext
-
findIterceptorBinding
public <T extends Annotation> T findIterceptorBinding(Class<T> annotationType)
- Specified by:
findIterceptorBinding
in interfaceio.quarkus.arc.ArcInvocationContext
-
findIterceptorBindings
public <T extends Annotation> List<T> findIterceptorBindings(Class<T> annotationType)
- Specified by:
findIterceptorBindings
in interfaceio.quarkus.arc.ArcInvocationContext
-
-