Annotation 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 -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionIndicates how the properties should be evaluated.
-
Element Details
-
value
String[] valueIndicates 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
EnabledBy.Condition conditionIndicates how the properties should be evaluated.- Returns:
- Default:
- ALL
-