Package org.jdbi.v3.core.extension
Interface ExtensionConfigurer
-
- All Known Subinterfaces:
Configurer
- All Known Implementing Classes:
KeyColumnImpl,RegisterArgumentFactoriesImpl,RegisterArgumentFactoryImpl,RegisterBeanMapperImpl,RegisterBeanMappersImpl,RegisterCollectorFactoryImpl,RegisterColumnMapperFactoriesImpl,RegisterColumnMapperFactoryImpl,RegisterColumnMapperImpl,RegisterColumnMappersImpl,RegisterConstructorMapperImpl,RegisterConstructorMappersImpl,RegisterFieldMapperImpl,RegisterFieldMappersImpl,RegisterJoinRowMapperImpl,RegisterObjectArgumentFactoriesImpl,RegisterObjectArgumentFactoryImpl,RegisterRowMapperFactoriesImpl,RegisterRowMapperFactoryImpl,RegisterRowMapperImpl,RegisterRowMappersImpl,SimpleExtensionConfigurer,UseAnnotationSqlLocatorImpl,UseClasspathSqlLocatorImpl,UseEnumStrategyImpl,UseFreemarkerEngineImpl,UseFreemarkerSqlLocatorImpl,UseSqlParserImpl,UseStringSubstitutorTemplateEngineImpl,UseStringTemplateEngineImpl,UseStringTemplateSqlLocatorImpl,UseTemplateEngineImpl,ValueColumnImpl
@Alpha public interface ExtensionConfigurer
ConfiguresConfigRegistryinstances. Implementation classes are referenced from annotations that are marked with theUseExtensionConfigurerannotation.
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
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidconfigureForMethod(ConfigRegistry config, java.lang.annotation.Annotation annotation, java.lang.Class<?> extensionType, java.lang.reflect.Method method)Configures the config for the given annotation on a extension type method.default voidconfigureForType(ConfigRegistry config, java.lang.annotation.Annotation annotation, java.lang.Class<?> extensionType)Updates configuration for the given annotation on an extension type.
-
-
-
Method Detail
-
configureForType
default void configureForType(ConfigRegistry config, java.lang.annotation.Annotation annotation, java.lang.Class<?> extensionType)
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, java.lang.annotation.Annotation annotation, java.lang.Class<?> extensionType, java.lang.reflect.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
-
-