Interface DefaultMethodHandler

All Known Implementing Classes:
NewJavaDefaultMethodHandler, OldJavaDefaultMethodHandler

public interface DefaultMethodHandler
The handler for default methods in interfaces
  • Method Summary

    Modifier and Type
    Method
    Description
    invoke(Object proxy, Method method, Object... args)
    Invoke the method
    default Object
    invoke(Method method, Object... args)
    Invoke the method using a dummy proxy
  • Method Details

    • invoke

      Object invoke(Object proxy, Method method, Object... args) throws Throwable
      Invoke the method
      Parameters:
      proxy - the proxy
      method - the method
      args - the arguments
      Returns:
      the result
      Throws:
      Throwable - the throwable
    • invoke

      default Object invoke(Method method, Object... args) throws Throwable
      Invoke the method using a dummy proxy
      Parameters:
      method - the method
      args - the arguments
      Returns:
      the result
      Throws:
      Throwable - the throwable