Package org.jdbi.v3.core.extension
Class UseAnnotationConfigCustomizerFactory
java.lang.Object
org.jdbi.v3.core.extension.UseAnnotationConfigCustomizerFactory
- All Implemented Interfaces:
ConfigCustomizerFactory
Applies configuration customizers according to
UseExtensionConfigurer decorating annotations.
present on the method.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Collection<ConfigCustomizer>buildConfigCustomizer(Stream<AnnotatedElement> elements, UseAnnotationConfigCustomizerFactory.ConfigurerMethod consumer) forExtensionMethod(Class<?> extensionType, Method method) Creates a collection ofConfigCustomizerinstances for an extension type method.forExtensionType(Class<?> extensionType) Creates a collection ofConfigCustomizerinstances for an extension type.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
UseAnnotationConfigCustomizerFactory
UseAnnotationConfigCustomizerFactory()
-
-
Method Details
-
forExtensionType
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
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 Collection<ConfigCustomizer> buildConfigCustomizer(Stream<AnnotatedElement> elements, UseAnnotationConfigCustomizerFactory.ConfigurerMethod consumer)
-