Class Handlers

java.lang.Object
org.jdbi.v3.sqlobject.Handlers
All Implemented Interfaces:
JdbiConfig<Handlers>

@Deprecated(since="3.38.0", forRemoval=true) public class Handlers extends Object implements JdbiConfig<Handlers>
Deprecated, for removal: This API element is subject to removal in a future version.
Registry for handler factories, which produce handlers for SQL object methods. By default, a factory is registered for methods annotated with SQL annotations such as @SqlUpdate or SqlQuery. Clients may register additional factories to provide support for other use cases. In the case that two or more registered factories would support a particular SQL object method, the last-registered factory takes precedence.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a copy of this configuration object.
    findFor(Class<?> sqlObjectType, Method method)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Registers the given handler factory with the registry.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    The registry will inject itself into the configuration object.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Handlers

      public Handlers()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setRegistry

      public void setRegistry(ConfigRegistry registry)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: JdbiConfig
      The registry will inject itself into the configuration object. This can be useful if you need to look up dependencies. You will get a new registry after being copied.
      Specified by:
      setRegistry in interface JdbiConfig<Handlers>
      Parameters:
      registry - the registry that owns this configuration object
    • register

      public Handlers register(HandlerFactory factory)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Registers the given handler factory with the registry.
      Parameters:
      factory - the factory to register
      Returns:
      this
    • findFor

      public Optional<Handler> findFor(Class<?> sqlObjectType, Method method)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createCopy

      public Handlers createCopy()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: JdbiConfig
      Returns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.
      Specified by:
      createCopy in interface JdbiConfig<Handlers>
      Returns:
      a copy of this configuration object.