Class ExtensionContext
java.lang.Object
org.jdbi.v3.core.extension.ExtensionContext
Accepted by a handle when executing extension code. This temporarily reconfigures the handle to execute
extension code. Reconfigurations are e.g. annotations from the sql objects that define mappers or bindings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionContext
forConfig
(ConfigRegistry config) Create an extension context for a configuration only.static ExtensionContext
forExtensionMethod
(ConfigRegistry config, Class<?> type, Method method)
-
Constructor Details
-
ExtensionContext
-
-
Method Details
-
forConfig
Create an extension context for a configuration only. No extension method information is set.- Parameters:
config
- AConfigRegistry
object.- Returns:
- An ExtensionContext.
-
forExtensionMethod
public static ExtensionContext forExtensionMethod(ConfigRegistry config, Class<?> type, Method method) -
getConfig
-
getExtensionMethod
-