Package org.jdbi.v3.sqlobject
Class Handlers
- java.lang.Object
-
- org.jdbi.v3.sqlobject.Handlers
-
- All Implemented Interfaces:
JdbiConfig<Handlers>
@Deprecated public class Handlers extends java.lang.Object implements JdbiConfig<Handlers>
Deprecated.UseExtensionHandlerFactoryinstances that are returned from theExtensionFactory.getExtensionHandlerFactories(ConfigRegistry)method.Registry forhandler factories, which producehandlersfor SQL object methods. By default, a factory is registered for methods annotated with SQL annotations such as@SqlUpdateorSqlQuery. 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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<HandlerFactory>factoriesDeprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HandlerscreateCopy()Deprecated.Returns a copy of this configuration object.java.util.Optional<Handler>findFor(java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)Deprecated.(package private) java.util.List<HandlerFactory>getFactories()Deprecated.Handlersregister(HandlerFactory factory)Deprecated.Registers the given handler factory with the registry.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry
-
-
-
-
Field Detail
-
factories
private final java.util.List<HandlerFactory> factories
Deprecated.
-
-
Constructor Detail
-
Handlers
public Handlers()
Deprecated.
-
Handlers
private Handlers(Handlers that)
Deprecated.
-
-
Method Detail
-
getFactories
java.util.List<HandlerFactory> getFactories()
Deprecated.
-
register
public Handlers register(HandlerFactory factory)
Deprecated.Registers the given handler factory with the registry.- Parameters:
factory- the factory to register- Returns:
- this
-
findFor
public java.util.Optional<Handler> findFor(java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)
Deprecated.
-
createCopy
public Handlers createCopy()
Deprecated.Description copied from interface:JdbiConfigReturns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopyin interfaceJdbiConfig<Handlers>- Returns:
- a copy of this configuration object.
-
-