Package org.jdbi.v3.core.extension
Class UseAnnotationConfigCustomizerFactory
- java.lang.Object
-
- org.jdbi.v3.core.extension.UseAnnotationConfigCustomizerFactory
-
- All Implemented Interfaces:
ConfigCustomizerFactory
final class UseAnnotationConfigCustomizerFactory extends java.lang.Object implements ConfigCustomizerFactory
Applies configuration customizers according toUseExtensionConfigurerdecorating annotations. present on the method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interfaceUseAnnotationConfigCustomizerFactory.ConfigurerMethod
-
Field Summary
Fields Modifier and Type Field Description (package private) static ConfigCustomizerFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description UseAnnotationConfigCustomizerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.util.Collection<ConfigCustomizer>buildConfigCustomizer(java.util.stream.Stream<java.lang.reflect.AnnotatedElement> elements, UseAnnotationConfigCustomizerFactory.ConfigurerMethod consumer)java.util.Collection<ConfigCustomizer>forExtensionMethod(java.lang.Class<?> extensionType, java.lang.reflect.Method method)Creates a collection ofConfigCustomizerinstances for an extension type method.java.util.Collection<ConfigCustomizer>forExtensionType(java.lang.Class<?> extensionType)Creates a collection ofConfigCustomizerinstances for an extension type.
-
-
-
Field Detail
-
INSTANCE
static final ConfigCustomizerFactory INSTANCE
-
-
Method Detail
-
forExtensionType
public java.util.Collection<ConfigCustomizer> forExtensionType(java.lang.Class<?> extensionType)
Description copied from interface:ConfigCustomizerFactoryCreates a collection ofConfigCustomizerinstances for an extension type.- Specified by:
forExtensionTypein interfaceConfigCustomizerFactory- Parameters:
extensionType- The extension type- Returns:
- A
CollectionofConfigCustomizerobjects. Must not be null
-
forExtensionMethod
public java.util.Collection<ConfigCustomizer> forExtensionMethod(java.lang.Class<?> extensionType, java.lang.reflect.Method method)
Description copied from interface:ConfigCustomizerFactoryCreates a collection ofConfigCustomizerinstances for an extension type method.- Specified by:
forExtensionMethodin interfaceConfigCustomizerFactory- Parameters:
extensionType- The extension typemethod- The method on the extension type- Returns:
- A
CollectionofConfigCustomizerobjects. Must not be null
-
buildConfigCustomizer
private static java.util.Collection<ConfigCustomizer> buildConfigCustomizer(java.util.stream.Stream<java.lang.reflect.AnnotatedElement> elements, UseAnnotationConfigCustomizerFactory.ConfigurerMethod consumer)
-
-