Package org.jdbi.v3.core.extension
Class UseAnnotationExtensionHandlerCustomizer
java.lang.Object
org.jdbi.v3.core.extension.UseAnnotationExtensionHandlerCustomizer
- All Implemented Interfaces:
ExtensionHandlerCustomizer
final class UseAnnotationExtensionHandlerCustomizer
extends Object
implements ExtensionHandlerCustomizer
Applies decorations to method handlers, according to any
UseExtensionHandlerCustomizer decorating annotations
present on the method. If multiple decorating annotations are present, the order of application can be controlled
using the ExtensionHandlerCustomizationOrder annotation.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Comparator<Class<? extends Annotation>>private static ExtensionHandlerCustomizercreateCustomizer(Class<? extends ExtensionHandlerCustomizer> customizerType, Class<?> extensionObjectType, Method method) customize(ExtensionHandler delegate, Class<?> extensionType, Method method) Customize an extension handler.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
UseAnnotationExtensionHandlerCustomizer
UseAnnotationExtensionHandlerCustomizer()
-
-
Method Details
-
customize
Description copied from interface:ExtensionHandlerCustomizerCustomize an extension handler.- Specified by:
customizein interfaceExtensionHandlerCustomizer- Parameters:
delegate- TheExtensionHandlerto customizeextensionType- The extension type classmethod- A method- Returns:
- An
ExtensionHandlerobject. This can be the same as thehandlerparameter or another instance that delegates to the original handler
-
createComparator
private Comparator<Class<? extends Annotation>> createComparator(ExtensionHandlerCustomizationOrder order) -
createCustomizer
private static ExtensionHandlerCustomizer createCustomizer(Class<? extends ExtensionHandlerCustomizer> customizerType, Class<?> extensionObjectType, Method method)
-