批注接口 EndpointExtension
Annotation primarily used as a meta-annotation to indicate that an annotation provides
extension support for an endpoint. Extensions allow additional technology specific
operations
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. The endpoint
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
- 作者:
- Phillip Webb
-
必需元素概要
所需元素修饰符和类型必需的元素说明Class
<? extends EndpointFilter<?>> The filter class used to determine when the extension applies. -
可选元素概要
可选元素
-
元素详细资料
-
filter
Class<? extends EndpointFilter<?>> filterThe filter class used to determine when the extension applies.- 返回:
- the filter class
-
endpoint
Class<?> endpointThe class of the endpoint to extend.- 返回:
- the class endpoint to extend
- 默认值:
java.lang.Void.class
-