Annotation Interface EnabledBy


@Retention(RUNTIME) @Target(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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Indicates the configuration properties which are used to enable a servlet provider.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Indicates how the properties should be evaluated.
  • Element Details

    • value

      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

      Indicates how the properties should be evaluated.
      Returns:
      Default:
      ALL