Class ProxyConfiguration.InterceptorDispatcher

java.lang.Object
net.thucydides.core.steps.ProxyConfiguration.InterceptorDispatcher
Enclosing interface:
ProxyConfiguration

public static class ProxyConfiguration.InterceptorDispatcher
extends java.lang.Object
A static interceptor that guards against method calls before the interceptor is set.
  • Constructor Summary

    Constructors
    Constructor Description
    InterceptorDispatcher()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.Object intercept​(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] arguments, java.lang.Object stubValue, Interceptor interceptor, java.lang.reflect.Method zuperMethod)
    Intercepts a method call to a proxy.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InterceptorDispatcher

      public InterceptorDispatcher()
  • Method Details

    • intercept

      @RuntimeType public static java.lang.Object intercept​(@This java.lang.Object instance, @Origin java.lang.reflect.Method method, @AllArguments java.lang.Object[] arguments, @StubValue java.lang.Object stubValue, @FieldValue("$$_serenity_interceptor") Interceptor interceptor, @SuperMethod java.lang.reflect.Method zuperMethod) throws java.lang.Throwable
      Intercepts a method call to a proxy.
      Parameters:
      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.
      Returns:
      The intercepted method's return value.
      Throws:
      java.lang.Throwable - If the intercepted method raises an exception.