Interface AttachedExtensionHandler

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

@FunctionalInterface @Alpha public interface AttachedExtensionHandler
Extension handler with a target object attached.
  • Method Summary

    Modifier and Type
    Method
    Description
    invoke(HandleSupplier handleSupplier, Object... args)
    Gets invoked to return a value for the method that this handler was is handling, on the attached target instance.
    default void
    Called after the method handler is constructed to pre-initialize any important configuration data structures.
  • Method Details

    • invoke

      Object invoke(HandleSupplier handleSupplier, Object... args) throws Exception
      Gets invoked to return a value for the method that this handler was is handling, on the attached target instance.
      Parameters:
      handleSupplier - A HandleSupplier instance for accessing the handle and its related objects
      args - Optional arguments for the handler
      Returns:
      The return value for the method that was bound to the extension handler. Can be null
      Throws:
      Exception - Any exception from the underlying code
    • 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 use for warming up