@Retention(value=RUNTIME) @Target(value=TYPE) @Documented public @interface EnabledBy
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)
| Modifier and Type | Required Element and Description |
|---|---|
String[] |
value
Indicates the configuration properties which are used to enable a servlet provider.
|
| Modifier and Type | Optional Element and Description |
|---|---|
EnabledBy.Condition |
condition
Indicates how the properties should be evaluated.
|
public abstract String[] value
public abstract EnabledBy.Condition condition