注释类型 EndpointExtension
@Target(TYPE) @Retention(RUNTIME) @Documented public @interface EndpointExtension
Annotation primarily used as a meta-annotation to indicate that an annotation provides extension support for an endpoint. Extensions allow additional technology specificoperations
to be added to an existing endpoint. For example, a web extension may offer variations of a read operation to support filtering based on a query parameter.Extension annotations must provide an
EndpointFilter
to restrict when the extension applies. Theendpoint
attribute is usually re-declared using@AliasFor
. For example:@EndpointExtension(filter = WebEndpointFilter.class) public @interface EndpointWebExtension { @AliasFor(annotation = EndpointExtension.class, attribute = "endpoint") Class<?> endpoint(); }
- 从以下版本开始:
- 2.0.0
必需元素概要
所需元素 修饰符和类型 必需的元素 说明 Class<? extends EndpointFilter<?>>
filter
The filter class used to determine when the extension applies.
元素详细资料
filter
Class<? extends EndpointFilter<?>> filter
The filter class used to determine when the extension applies.- 返回:
- the filter class