Annotation Interface Selector


@Target(PARAMETER) @Retention(RUNTIME) @Documented public @interface Selector
A @Selector can be used on a parameter of an @Endpoint method to indicate that the parameter is used to select a subset of the endpoint's data.

A @Selector may change the way that the endpoint is exposed to the user. For example, HTTP mapped endpoints will map select parameters to path variables.

Since:
2.0.0
Author:
Andy Wilkinson
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Match types that can be used with the @Selector.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The match type that should be used for the selection.
  • Element Details

    • match

      The match type that should be used for the selection.
      Returns:
      the match type
      Since:
      2.2.0
      Default:
      SINGLE