public static class ProxyConfiguration.InterceptorDispatcher extends Object
Constructor and Description |
---|
InterceptorDispatcher() |
Modifier and Type | Method and Description |
---|---|
static Object |
intercept(Object instance,
Method method,
Object[] arguments,
Object stubValue,
Interceptor interceptor,
Method zuperMethod)
Intercepts a method call to a proxy.
|
@RuntimeType public static Object intercept(@This Object instance, @Origin Method method, @AllArguments Object[] arguments, @StubValue Object stubValue, @FieldValue(value="$$_serenity_interceptor") Interceptor interceptor, @SuperMethod Method zuperMethod) throws Throwable
instance
- The proxied instance.method
- The invoked method.arguments
- The method arguments.stubValue
- The intercepted method's default value.interceptor
- The proxy object's interceptor instance.Throwable
- If the intercepted method raises an exception.Copyright © 2021. All rights reserved.