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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract voidconfigure(ConfigRegistry config, Annotation annotation, Class<?> extensionType) Updates configuration for the given annotation on an extension type.final voidconfigureForMethod(ConfigRegistry config, Annotation annotation, Class<?> extensionType, Method method) Configures the config for the given annotation on a extension type method.final voidconfigureForType(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:ExtensionConfigurerUpdates configuration for the given annotation on an extension type.- Specified by:
 configureForTypein 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:ExtensionConfigurerConfigures the config for the given annotation on a extension type method.- Specified by:
 configureForMethodin 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- TheConfigRegistryobject to configureannotation- The annotation that invoked this methodextensionType- the extension type which was annotated
 
 -