Package org.jdbi.v3.sqlobject
Class SqlMethodAnnotatedHandlerDecorator
java.lang.Object
org.jdbi.v3.sqlobject.SqlMethodAnnotatedHandlerDecorator
- All Implemented Interfaces:
ExtensionHandlerCustomizer,HandlerDecorator
Applies decorations to method handlers, according to any
decorating annotations
present on the method. If multiple decorating annotations are present, the order of application can be controlled
using the DecoratorOrder annotation.
This decorator is registered out of the box and supports the deprecated SqlMethodDecoratingAnnotation annotations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static HandlerDecoratorbuildDecorator(Class<? extends HandlerDecorator> decoratorClass) private Comparator<Class<? extends Annotation>>decorateHandler(Handler delegate, Class<?> sqlObjectType, Method method) Decorates theHandlerto add or substitute behavior on the given SQL Object method.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.sqlobject.HandlerDecorator
customize
-
Constructor Details
-
SqlMethodAnnotatedHandlerDecorator
SqlMethodAnnotatedHandlerDecorator()
-
-
Method Details
-
decorateHandler
Description copied from interface:HandlerDecoratorDecorates theHandlerto add or substitute behavior on the given SQL Object method. Implementations may alternatively return the base handler, e.g. if the conditions for applying a particular decoration are not met.- Specified by:
decorateHandlerin interfaceHandlerDecorator- Parameters:
delegate- the base handler to decoratesqlObjectType- the SQL Object typemethod- the method to be decorated- Returns:
- the base handle, or a decorated handler (depending on the decorator implementation).
-
createDecoratorComparator
-
buildDecorator
-