public class Handlers extends Object implements JdbiConfig<Handlers>
handler factories, which produce handlers for SQL object methods.
By default, a factory is registered for default methods (DefaultMethodHandlerFactory) and 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 and Description |
|---|
Handlers() |
| Modifier and Type | Method and Description |
|---|---|
Handlers |
createCopy() |
Optional<Handler> |
findFor(Class<?> sqlObjectType,
Method method) |
Handlers |
register(HandlerFactory factory)
Registers the given handler factory with the registry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetRegistrypublic Handlers register(HandlerFactory factory)
factory - the factory to registerpublic Handlers createCopy()
createCopy in interface JdbiConfig<Handlers>Copyright © 2018. All rights reserved.