Package org.jdbi.v3.sqlobject
Class Handlers
- java.lang.Object
-
- org.jdbi.v3.sqlobject.Handlers
-
- All Implemented Interfaces:
JdbiConfig<Handlers>
public class Handlers extends Object implements JdbiConfig<Handlers>
Registry forhandler factories, which producehandlersfor SQL object methods. By default, a factory is registered for default methods (DefaultMethodHandlerFactory) and 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.
-
-
Constructor Summary
Constructors Constructor Description Handlers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HandlerscreateCopy()Optional<Handler>findFor(Class<?> sqlObjectType, Method method)Handlersregister(HandlerFactory factory)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
-
-
-
-
Method Detail
-
register
public Handlers register(HandlerFactory factory)
Registers the given handler factory with the registry.- Parameters:
factory- the factory to register- Returns:
- this
-
createCopy
public Handlers createCopy()
- Specified by:
createCopyin interfaceJdbiConfig<Handlers>
-
-