Package org.jdbi.v3.core.extension
Class ExtensionMetadata.ExtensionHandlerInvoker
java.lang.Object
org.jdbi.v3.core.extension.ExtensionMetadata.ExtensionHandlerInvoker
- Enclosing class:
ExtensionMetadata
Wraps all config customizers and the handler for a specific method execution.
An invoker is created using
ExtensionMetadata.createExtensionHandlerInvoker(Object, Method, HandleSupplier, ConfigRegistry)
.-
Method Summary
-
Method Details
-
invoke
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 registeredExtensionHandler
.- Parameters:
args
- The arguments to pass into the extension handler- Returns:
- The result of the extension handler invocation
-
call
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 theCallable.call()
method.
This method is used by the generated classes from thejdbi3-generator
annotation processor to execute predefinedExtensionHandler
instances.- Parameters:
callable
- The callable to use- Returns:
- The result of the extension handler invocation
-
call
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 theRunnable.run()
method.
This method is used by the generated classes from thejdbi3-generator
annotation processor to execute predefinedExtensionHandler
instances.- Parameters:
runnable
- The runnable to use
-