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 ofInvocationContextImplwhich makes it implementArcInvocationContextinstead so that it's compatible with Quarkus interceptors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuarkusInvocationContextImpl.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()MethodgetMethod()Object[]getParameters()ObjectgetTarget()ObjectgetTimer()(package private) booleanhasNextInterceptor()protected ObjectinterceptorChainCompleted()protected ObjectinvokeNext()Objectproceed()voidsetParameters(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:
proceedin interfacejakarta.interceptor.InvocationContext- Throws:
Exception
-
getTarget
public Object getTarget()
- Specified by:
getTargetin interfacejakarta.interceptor.InvocationContext
-
getMethod
public Method getMethod()
- Specified by:
getMethodin interfacejakarta.interceptor.InvocationContext
-
getConstructor
public Constructor<?> getConstructor()
- Specified by:
getConstructorin interfacejakarta.interceptor.InvocationContext
-
getParameters
public Object[] getParameters() throws IllegalStateException
- Specified by:
getParametersin interfacejakarta.interceptor.InvocationContext- Throws:
IllegalStateException
-
setParameters
public void setParameters(Object[] params) throws IllegalStateException, IllegalArgumentException
- Specified by:
setParametersin interfacejakarta.interceptor.InvocationContext- Throws:
IllegalStateExceptionIllegalArgumentException
-
getContextData
public Map<String,Object> getContextData()
- Specified by:
getContextDatain interfacejakarta.interceptor.InvocationContext
-
getTimer
public Object getTimer()
- Specified by:
getTimerin interfacejakarta.interceptor.InvocationContext
-
getInterceptorBindings
public Set<Annotation> getInterceptorBindings()
- Specified by:
getInterceptorBindingsin interfaceio.quarkus.arc.ArcInvocationContext
-
findIterceptorBinding
public <T extends Annotation> T findIterceptorBinding(Class<T> annotationType)
- Specified by:
findIterceptorBindingin interfaceio.quarkus.arc.ArcInvocationContext
-
findIterceptorBindings
public <T extends Annotation> List<T> findIterceptorBindings(Class<T> annotationType)
- Specified by:
findIterceptorBindingsin interfaceio.quarkus.arc.ArcInvocationContext
-
-