Interface ProxyConfiguration.Interceptor

All Known Implementing Classes:
ByteBuddyInterceptor, PassThroughInterceptor
Enclosing interface:
ProxyConfiguration

public static interface ProxyConfiguration.Interceptor
An interceptor object that is responsible for invoking a proxy's method.
  • Method Summary

    Modifier and Type
    Method
    Description
    intercept(Object instance, Method method, Object[] arguments)
    Intercepts a method call to a proxy.
  • Method Details

    • intercept

      @RuntimeType Object intercept(@This Object instance, @Origin Method method, @AllArguments Object[] arguments) throws Throwable
      Intercepts a method call to a proxy.
      Parameters:
      instance - The proxied instance.
      method - The invoked method.
      arguments - The intercepted method arguments.
      Returns:
      The method's return value.
      Throws:
      Throwable - If the intercepted method raises an exception.