Class HandlerDecorators
java.lang.Object
org.jdbi.v3.sqlobject.HandlerDecorators
- All Implemented Interfaces:
JdbiConfig<HandlerDecorators>
Deprecated.
Registry for
handler decorators
. Decorators may modify or augment the behavior of a method
Handler in some way. Out of the box, a decorator is registered which applies decorations for any
decorating annotations
present on a SQL method. For example, using the
Transaction
annotation will cause a SQL method to be executed within a
transaction. Decorators are applied in the order registered, from innermost to outermost: the last registered
decorator will be the outermost decorator around the method handler.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyDecorators
(Handler base, Class<?> sqlObjectType, Method method) Deprecated.Applies all registered decorators to the given handlerDeprecated.Returns a copy of this configuration object.register
(HandlerDecorator decorator) Deprecated.Registers the given handler decorator with the registry.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry
-
Constructor Details
-
HandlerDecorators
public HandlerDecorators()Deprecated.
-
-
Method Details
-
register
Deprecated.Registers the given handler decorator with the registry.- Parameters:
decorator
- the decorator to register- Returns:
- this
-
applyDecorators
-
createCopy
Deprecated.Description copied from interface:JdbiConfig
Returns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopy
in interfaceJdbiConfig<HandlerDecorators>
- Returns:
- a copy of this configuration object.
-
ExtensionHandlerCustomizer
instances which are returned directly from theExtensionFactory.getExtensionHandlerCustomizers(ConfigRegistry)
.