Interface HandlerDecorator

All Superinterfaces:
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 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 Type
    Method
    Description
    customize(ExtensionHandler defaultHandler, Class<?> extensionType, Method method)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Customize an extension handler.
    decorateHandler(Handler base, Class<?> sqlObjectType, Method method)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Decorates the Handler to add or substitute behavior on the given SQL Object method.
  • Method Details

    • decorateHandler

      Handler decorateHandler(Handler base, Class<?> sqlObjectType, Method method)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Decorates the Handler to 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 decorate
      sqlObjectType - the SQL Object type
      method - the method to be decorated
      Returns:
      the base handle, or a decorated handler (depending on the decorator implementation).
    • customize

      default ExtensionHandler customize(ExtensionHandler defaultHandler, Class<?> extensionType, Method method)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ExtensionHandlerCustomizer
      Customize an extension handler.
      Specified by:
      customize in interface ExtensionHandlerCustomizer
      Parameters:
      defaultHandler - The ExtensionHandler to customize
      extensionType - The extension type class
      method - A method
      Returns:
      An ExtensionHandler object. This can be the same as the handler parameter or another instance that delegates to the original handler