Package org.jdbi.v3.core.extension
Interface ExtensionConfigurer
- All Known Subinterfaces:
Configurer
- All Known Implementing Classes:
SimpleExtensionConfigurer
Configures
Instances of this interface update the configuration used to execute a specific method e.g. to register row mapper needed for the execution of the underlying ExtensionHandler.
ConfigRegistry
instances. Implementation classes
are referenced from annotations that are marked with the UseExtensionConfigurer
annotation.
Instances of this interface update the configuration used to execute a specific method e.g. to register row mapper needed for the execution of the underlying ExtensionHandler.
- Since:
- 3.38.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
configureForMethod
(ConfigRegistry config, Annotation annotation, Class<?> extensionType, Method method) Configures the config for the given annotation on a extension type method.default void
configureForType
(ConfigRegistry config, Annotation annotation, Class<?> extensionType) Updates configuration for the given annotation on an extension type.
-
Method Details
-
configureForType
Updates configuration for the given annotation on an extension type.- Parameters:
config
- the config to configureannotation
- the annotationextensionType
- the extension type which was annotated
-
configureForMethod
default void configureForMethod(ConfigRegistry config, Annotation annotation, Class<?> extensionType, Method method) Configures the config for the given annotation on a extension type method.- Parameters:
config
- the config to configureannotation
- the annotationextensionType
- the extension typemethod
- the method which was annotated
-