批注接口 EndpointExtension


@Target(TYPE) @Retention(RUNTIME) @Documented @Reflective 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 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.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    The class of the endpoint to extend.
  • 元素详细资料

    • filter

      Class<? extends EndpointFilter<?>> filter
      The filter class used to determine when the extension applies.
      返回:
      the filter class
    • endpoint

      Class<?> endpoint
      The class of the endpoint to extend.
      返回:
      the class endpoint to extend
      默认值:
      java.lang.Void.class