Package org.jdbi.v3.core.extension
Class SimpleExtensionConfigurer
java.lang.Object
org.jdbi.v3.core.extension.SimpleExtensionConfigurer
- All Implemented Interfaces:
ExtensionConfigurer
@Alpha
public abstract class SimpleExtensionConfigurer
extends Object
implements ExtensionConfigurer
Configurer base class that applies the same configuration changes independent whether an annotation
is placed on the type or a method.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
configure
(ConfigRegistry config, Annotation annotation, Class<?> extensionType) Updates configuration for the given annotation on an extension type.final void
configureForMethod
(ConfigRegistry config, Annotation annotation, Class<?> extensionType, Method method) Configures the config for the given annotation on a extension type method.final void
configureForType
(ConfigRegistry config, Annotation annotation, Class<?> extensionType) Updates configuration for the given annotation on an extension type.
-
Constructor Details
-
SimpleExtensionConfigurer
public SimpleExtensionConfigurer()
-
-
Method Details
-
configureForType
public final void configureForType(ConfigRegistry config, Annotation annotation, Class<?> extensionType) Description copied from interface:ExtensionConfigurer
Updates configuration for the given annotation on an extension type.- Specified by:
configureForType
in interfaceExtensionConfigurer
- Parameters:
config
- the config to configureannotation
- the annotationextensionType
- the extension type which was annotated
-
configureForMethod
public final void configureForMethod(ConfigRegistry config, Annotation annotation, Class<?> extensionType, Method method) Description copied from interface:ExtensionConfigurer
Configures the config for the given annotation on a extension type method.- Specified by:
configureForMethod
in interfaceExtensionConfigurer
- Parameters:
config
- the config to configureannotation
- the annotationextensionType
- the extension typemethod
- the method which was annotated
-
configure
public abstract void configure(ConfigRegistry config, Annotation annotation, Class<?> extensionType) Updates configuration for the given annotation on an extension type.- Parameters:
config
- TheConfigRegistry
object to configureannotation
- The annotation that invoked this methodextensionType
- the extension type which was annotated
-