注释类型 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 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
    • 必需元素概要

      所需元素 
      修饰符和类型必需的元素说明
      Class<? extends EndpointFilter<?>>filter
      The filter class used to determine when the extension applies.
    • 可选元素概要

      可选元素 
      修饰符和类型可选元素说明
      Class<?>endpoint
      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