Package org.jdbi.v3.core.extension
Interface ExtensionHandlerCustomizer
-
- All Known Subinterfaces:
HandlerDecorator
- All Known Implementing Classes:
SqlMethodAnnotatedHandlerDecorator,TransactionDecorator,UseAnnotationExtensionHandlerCustomizer
@Alpha public interface ExtensionHandlerCustomizer
Supports customization of an extension handler. Common use cases are decorators through annotations on the method itself. The SqlObject extension implements its annotations throughExtensionHandlerCustomizerinstances.- Since:
- 3.38.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExtensionHandlercustomize(ExtensionHandler handler, java.lang.Class<?> extensionType, java.lang.reflect.Method method)Customize an extension handler.
-
-
-
Method Detail
-
customize
ExtensionHandler customize(ExtensionHandler handler, java.lang.Class<?> extensionType, java.lang.reflect.Method method)
Customize an extension handler.- Parameters:
handler- 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
-
-