Package org.jdbi.v3.sqlobject
Interface HandlerDecorator
-
- All Superinterfaces:
ExtensionHandlerCustomizer
- All Known Implementing Classes:
SqlMethodAnnotatedHandlerDecorator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated @FunctionalInterface public interface HandlerDecorator extends ExtensionHandlerCustomizer
Deprecated.UseExtensionHandlerCustomizerdirectly.Decorates Handler objects with additional behavior.- See Also:
SqlMethodDecoratingAnnotation,HandlerDecorators
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default ExtensionHandlercustomize(ExtensionHandler defaultHandler, java.lang.Class<?> extensionType, java.lang.reflect.Method method)Deprecated.Customize an extension handler.HandlerdecorateHandler(Handler base, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)Deprecated.Decorates theHandlerto add or substitute behavior on the given SQL Object method.
-
-
-
Method Detail
-
decorateHandler
Handler decorateHandler(Handler base, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)
Deprecated.Decorates theHandlerto add or substitute behavior on the given SQL Object method. Implementations may alternatively return the base handler, e.g. if the conditions for applying a particular decoration are not met.- Parameters:
base- the base handler to decoratesqlObjectType- the SQL Object typemethod- the method to be decorated- Returns:
- the base handle, or a decorated handler (depending on the decorator implementation).
-
customize
default ExtensionHandler customize(ExtensionHandler defaultHandler, java.lang.Class<?> extensionType, java.lang.reflect.Method method)
Deprecated.Description copied from interface:ExtensionHandlerCustomizerCustomize an extension handler.- Specified by:
customizein interfaceExtensionHandlerCustomizer- Parameters:
defaultHandler- 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
-
-