Package org.jdbi.v3.core.extension
The extension classes allow you to extend Jdbi's
functionality by declaring interface types that may attach to Handle
instances. An attached extension creates an instance of the interface that
wraps method invocations in an extension context. The context has a
configuration and remembers the currently executing extension method.
An ExtensionFactory instance provides the actual extension instances and
implements the behavior of the extension.
Some built in features such as SQL Objects are themselves implemented as extensions.
-
Interface Summary Interface Description ConfigCustomizerFactory Factory interface to create collections ofConfigCustomizerinstances.ExtensionCallback<R,E,X extends java.lang.Exception> ExtensionConfigurer ConfiguresConfigRegistryinstances.ExtensionConsumer<E,X extends java.lang.Exception> ExtensionFactory Factory interface used to produce Jdbi extension objects.ExtensionHandler Provides functionality for a single method on an extension object.ExtensionHandlerCustomizer Supports customization of an extension handler.ExtensionHandlerFactory A factory to createExtensionHandlerinstances.HandleSupplier A handle supplier for extension implementors.UseAnnotationConfigCustomizerFactory.ConfigurerMethod -
Class Summary Class Description BridgeMethodExtensionHandlerFactory Extension handler factory for bridge methods.DefaultMethodExtensionHandlerFactory ProvidesExtensionHandlerinstances for interface default methods.ExtensionContext Accepted by a handle when executing extension code.ExtensionFactoryDelegate ExtensionMetadata Metadata that was detected when analyzing an extension class before attaching.ExtensionMetadata.Builder Builder class for theExtensionMetadataobject.ExtensionMethod Holder for aClassand aMethodthat together define which extension method was invoked.Extensions Configuration class for definingJdbiextensions viaExtensionFactoryinstances.FilteringExtensionHandlerFactory InstanceExtensionHandlerFactory ProvidesExtensionHandlerinstances for all methods that have not been covered in any other way.PrivateLookupInKludge this is a required kludge for JDK 8.SimpleExtensionConfigurer Configurer base class that applies the same configuration changes independent whether an annotation is placed on the type or a method.UseAnnotationConfigCustomizerFactory Applies configuration customizers according toUseExtensionConfigurerdecorating annotations.UseAnnotationExtensionHandlerCustomizer Applies decorations to method handlers, according to anyUseExtensionHandlerCustomizerdecorating annotations present on the method.UseAnnotationExtensionHandlerFactory ProcessesUseExtensionHandlerannotations on methods. -
Enum Summary Enum Description ExtensionFactory.FactoryFlag Flags that the factory can return to control aspects of the extension framework. -
Exception Summary Exception Description NoSuchExtensionException Thrown when noExtensionFactoryaccepts a given extension type.UnableToCreateExtensionException Marks that a specific extension could not be created.