Class ExtensionMetadata.ExtensionHandlerInvoker

    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object... args)
        Invoke the registered extension handler code in the extension context. The extension context wraps the method that gets executed and a full customized configuration (both instance and method specific configuration customizers have been applied). The extension context is registered with the underlying handle to configure the handle when executing the registered ExtensionHandler.
        Parameters:
        args - The arguments to pass into the extension handler
        Returns:
        The result of the extension handler invocation
      • call

        public java.lang.Object call​(java.util.concurrent.Callable<?> callable)
        Invoke a callable in the extension context. The extension context wraps the method that gets executed and a full customized configuration (both instance and method specific configuration customizers have been applied). The extension context is registered with the underlying handle to configure the handle when calling the Callable.call() method.
        This method is used by the generated classes from the jdbi3-generator annotation processor to execute predefined ExtensionHandler instances.
        Parameters:
        callable - The callable to use
        Returns:
        The result of the extension handler invocation
      • call

        public void call​(java.lang.Runnable runnable)
        Invoke a runnable in the extension context. The extension context wraps the method that gets executed and a full customized configuration (both instance and method specific configuration customizers have been applied). The extension context is registered with the underlying handle to configure the handle when calling the Runnable.run() method.
        This method is used by the generated classes from the jdbi3-generator annotation processor to execute predefined ExtensionHandler instances.
        Parameters:
        runnable - The runnable to use