@Internal public class SynchronousInterceptedMethod extends Object implements InterceptedMethod
InterceptedMethod.ResultType
Modifier and Type | Method and Description |
---|---|
<E extends Throwable> |
handleException(Exception exception)
Handle the exception that should be thrown out of the invocation.
|
Object |
handleResult(Object result)
Handle the value that should be the result of the invocation.
|
Object |
interceptResult()
Proceeds with invocation of
InvocationContext.proceed() and converts result to appropriate type. |
Object |
interceptResult(Interceptor<?,?> from)
Proceeds with invocation of
InvocationContext.proceed(Interceptor) and converts result to appropriate type. |
InterceptedMethod.ResultType |
resultType()
Returns result type of the method.
|
Argument<?> |
returnTypeValue()
Returns result type value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
interceptResultAsCompletionStage, interceptResultAsCompletionStage, interceptResultAsPublisher, interceptResultAsPublisher, interceptResultAsPublisher, of, unsupported
public InterceptedMethod.ResultType resultType()
InterceptedMethod
resultType
in interface InterceptedMethod
InterceptedMethod.ResultType
public Argument<?> returnTypeValue()
InterceptedMethod
returnTypeValue
in interface InterceptedMethod
public Object interceptResult()
InterceptedMethod
InvocationContext.proceed()
and converts result to appropriate type.interceptResult
in interface InterceptedMethod
public Object interceptResult(Interceptor<?,?> from)
InterceptedMethod
InvocationContext.proceed(Interceptor)
and converts result to appropriate type.interceptResult
in interface InterceptedMethod
from
- The interceptor to start frompublic Object handleResult(Object result)
InterceptedMethod
handleResult
in interface InterceptedMethod
result
- The result of the invocationpublic <E extends Throwable> Object handleException(Exception exception) throws E extends Throwable
InterceptedMethod
handleException
in interface InterceptedMethod
E
- Sneaky throws helperexception
- The exceptionE
- The exceptionE extends Throwable