oracle.dbtools.plugin.api.http.annotations

## Annotation Type EnabledBy

-     @Retention(value=RUNTIME)
       @Target(value=TYPE)
       @Documented
      public @interface EnabledBy

  Provides the means to enable a `Servlet` based on specified configuration properties. With this annotation, a Servlet will be disabled until the configuration criteria are met.

  For example to have a servlet disabled unless any one of these properties are true, use :

       @EnabledBy(value={"feature1","feature2"}, condition=EnabledBy.Condition.ANY)

  Author:
    peobrie

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `String[]` | `value` Indicates the configuration properties which are used to enable a servlet provider.

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `EnabledBy.Condition` | `condition` Indicates how the properties should be evaluated.

- - ### Element Detail

    - #### value

          public abstract String[] value

      Indicates the configuration properties which are used to enable a servlet provider. Any, or all, of the properties that evaluate to true will render the servlet enabled depending on the condition property.
      Returns:
        Set of configuration properties that disable this type

  - - #### condition

          public abstract EnabledBy.Condition condition

      Indicates how the properties should be evaluated.
      Returns:
      Default:
        oracle.dbtools.plugin.api.http.annotations.EnabledBy.Condition.ALL

Copyright © 2010, 2022, Oracle and/or its affiliates.