Package org.jdbi.v3.sqlobject
Class HandlerDecorators
- java.lang.Object
-
- org.jdbi.v3.sqlobject.HandlerDecorators
-
- All Implemented Interfaces:
JdbiConfig<HandlerDecorators>
@Deprecated public class HandlerDecorators extends java.lang.Object implements JdbiConfig<HandlerDecorators>
Deprecated.UseExtensionHandlerCustomizerinstances which are returned directly from theExtensionFactory.getExtensionHandlerCustomizers(ConfigRegistry).Registry forhandler 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 anydecorating annotationspresent on a SQL method. For example, using theTransactionannotation 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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<HandlerDecorator>decoratorsDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description HandlerDecorators()Deprecated.privateHandlerDecorators(HandlerDecorators that)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HandlerapplyDecorators(Handler base, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)Deprecated.Applies all registered decorators to the given handlerHandlerDecoratorscreateCopy()Deprecated.Returns a copy of this configuration object.(package private) ExtensionHandlercustomize(ExtensionHandler base, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)Deprecated.HandlerDecoratorsregister(HandlerDecorator decorator)Deprecated.Registers the given handler decorator 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
-
-
-
-
Field Detail
-
decorators
private final java.util.List<HandlerDecorator> decorators
Deprecated.
-
-
Constructor Detail
-
HandlerDecorators
public HandlerDecorators()
Deprecated.
-
HandlerDecorators
private HandlerDecorators(HandlerDecorators that)
Deprecated.
-
-
Method Detail
-
register
public HandlerDecorators register(HandlerDecorator decorator)
Deprecated.Registers the given handler decorator with the registry.- Parameters:
decorator- the decorator to register- Returns:
- this
-
applyDecorators
public Handler applyDecorators(Handler base, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)
Deprecated.Applies all registered decorators to the given handler- Parameters:
base- the base handlersqlObjectType- the SQL object typemethod- the SQL method to be decorated- Returns:
- the decorated handler
-
customize
ExtensionHandler customize(ExtensionHandler base, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)
Deprecated.
-
createCopy
public HandlerDecorators createCopy()
Deprecated.Description copied from interface:JdbiConfigReturns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopyin interfaceJdbiConfig<HandlerDecorators>- Returns:
- a copy of this configuration object.
-
-