Interface MethodCallerFactory

All Known Implementing Classes:
DefaultMethodCallerFactory

public interface MethodCallerFactory
Factory for creating MethodCallers for methods.
  • Method Details

    • methodHandles

      @NotNull static @NotNull MethodCallerFactory methodHandles()
      Returns a MethodCallerFactory that uses the new method handling API to create method callers.
      Returns:
      The default method caller factory.
    • createFor

      @NotNull @NotNull MethodCaller createFor(@NotNull @NotNull Method method) throws Throwable
      Creates a new MethodCaller for the specified method.
      Parameters:
      method - Method to create for
      Returns:
      The reflective method caller
      Throws:
      Throwable - Any exceptions during creation