Annotation Interface EndpointDisabled


@Retention(RUNTIME) @Target(TYPE) public @interface EndpointDisabled
Provides the ability to conditionally enable a JAX-RS Resource class at runtime based on the value of a property.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of the property to check
    Expected String value of the property (specified by name) if the Resource class is to be disabled
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Determines if the Resource class is to be disabled when the property name specified by name has not been specified at all
  • Element Details

    • name

      String name
      Name of the property to check
    • stringValue

      String stringValue
      Expected String value of the property (specified by name) if the Resource class is to be disabled
    • disableIfMissing

      boolean disableIfMissing
      Determines if the Resource class is to be disabled when the property name specified by name has not been specified at all
      Default:
      false