Interface Handler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Handler
Implements the contract of a SQL Object method.
  • Method Summary

    Modifier and Type
    Method
    Description
    invoke(Object target, Object[] args, HandleSupplier handleSupplier)
    Executes a SQL Object method, and returns the result.
    default void
    Called after the method handler is constructed to pre-initialize any important configuration data structures.
  • Method Details

    • invoke

      Object invoke(Object target, Object[] args, HandleSupplier handleSupplier) throws Exception
      Executes a SQL Object method, and returns the result.
      Parameters:
      target - the SQL Object instance being invoked
      args - the arguments that were passed to the method.
      handleSupplier - a (possibly lazy) Handle supplier.
      Returns:
      the method return value, or null if the method has a void return type.
      Throws:
      Exception - any exception thrown by the method.
    • warm

      @Beta default void warm(ConfigRegistry config)
      Called after the method handler is constructed to pre-initialize any important configuration data structures.
      Parameters:
      config - the method configuration to warm