@Repeatable(value=Decorators.class) @Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface Decorator
DecoratingHttpServiceFunction class which handles an HttpRequest before invoking
an annotated service method.| Modifier and Type | Required Element and Description |
|---|---|
Class<? extends DecoratingHttpServiceFunction> |
value
DecoratingHttpServiceFunction implementation type. |
public abstract Class<? extends DecoratingHttpServiceFunction> value
DecoratingHttpServiceFunction implementation type. The specified class must have an accessible
default constructor.public abstract int order
Decorator of lower value will be applied first.Copyright © 2020 LeanCloud. All rights reserved.