public interface ExtensionFactory
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<?> extensionType) |
<E> E |
attach(Class<E> extensionType,
HandleSupplier handle) |
boolean accepts(Class<?> extensionType)
extensionType - the extension type<E> E attach(Class<E> extensionType, HandleSupplier handle)
E - the extension typeextensionType - the extension type.handle - Supplies the database handle. This supplier may lazily open a Handle on the first
invocation. Extension implementors should take care not to fetch the handle before it is
needed, to avoid opening handles unnecessarily.IllegalArgumentException - if the extension type is not supported by this factory.Jdbi.onDemand(Class)Copyright © 2019. All rights reserved.