Package org.jdbi.v3.core.extension
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.
Extension handler with a target object attached.
-
Method Summary
Modifier and TypeMethodDescriptioninvoke
(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
warm
(ConfigRegistry config) Called after the method handler is constructed to pre-initialize any important configuration data structures.
-
Method Details
-
invoke
Gets invoked to return a value for the method that this handler was is handling, on the attached target instance.- Parameters:
handleSupplier
- AHandleSupplier
instance for accessing the handle and its related objectsargs
- 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
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
-