Interface HandlerDecorator
- All Superinterfaces:
org.jdbi.v3.core.extension.ExtensionHandlerCustomizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated(since="3.38.0",
forRemoval=true)
@FunctionalInterface
public interface HandlerDecorator
extends org.jdbi.v3.core.extension.ExtensionHandlerCustomizer
Deprecated, for removal: This API element is subject to removal in a future version.
Decorates Handler objects with additional behavior.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.jdbi.v3.core.extension.ExtensionHandlercustomize(org.jdbi.v3.core.extension.ExtensionHandler defaultHandler, Class<?> extensionType, Method method) Deprecated, for removal: This API element is subject to removal in a future version.decorateHandler(Handler base, Class<?> sqlObjectType, Method method) Deprecated, for removal: This API element is subject to removal in a future version.Decorates theHandlerto add or substitute behavior on the given SQL Object method.
-
Method Details
-
decorateHandler
Deprecated, for removal: This API element is subject to removal in a future version.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 org.jdbi.v3.core.extension.ExtensionHandler customize(org.jdbi.v3.core.extension.ExtensionHandler defaultHandler, Class<?> extensionType, Method method) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
customizein interfaceorg.jdbi.v3.core.extension.ExtensionHandlerCustomizer
-
ExtensionHandlerCustomizerdirectly.