Annotation Interface Decorator
@Repeatable(Decorators.class)
@Retention(RUNTIME)
@Target({TYPE,METHOD})
public @interface Decorator
Specifies a
DecoratingHttpServiceFunction
class which handles an HttpRequest
before invoking
an annotated service method.-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends DecoratingHttpServiceFunction>
DecoratingHttpServiceFunction
implementation type. -
Optional Element Summary
Optional Elements
-
Element Details
-
value
Class<? extends DecoratingHttpServiceFunction> valueDecoratingHttpServiceFunction
implementation type. The specified class must have an accessible default constructor. -
order
int orderThe order of decoration, where aDecorator
of lower value will be applied first.- Default:
0
-