Interface HandlerFactory

All Superinterfaces:
org.jdbi.v3.core.extension.ExtensionHandlerFactory

@Deprecated(since="3.38.0", forRemoval=true) public interface HandlerFactory extends org.jdbi.v3.core.extension.ExtensionHandlerFactory
Deprecated, for removal: This API element is subject to removal in a future version.
Use ExtensionHandlerFactory instances directly.
Creates Handler objects for methods annotated with a specific SQL method annotation, which satisfy the contract of that annotation.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    accepts(Class<?> extensionType, Method method)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    buildHandler(Class<?> sqlObjectType, Method method)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a Handler instance for executing the given SQL Object method.
    default Optional<org.jdbi.v3.core.extension.ExtensionHandler>
    createExtensionHandler(Class<?> extensionType, Method method)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Details

    • buildHandler

      Optional<Handler> buildHandler(Class<?> sqlObjectType, Method method)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a Handler instance for executing the given SQL Object method.
      Parameters:
      sqlObjectType - the SQL Object type
      method - the method
      Returns:
      a handler, if applicable
    • accepts

      default boolean accepts(Class<?> extensionType, Method method)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      accepts in interface org.jdbi.v3.core.extension.ExtensionHandlerFactory
    • createExtensionHandler

      default Optional<org.jdbi.v3.core.extension.ExtensionHandler> createExtensionHandler(Class<?> extensionType, Method method)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      createExtensionHandler in interface org.jdbi.v3.core.extension.ExtensionHandlerFactory