Annotation Interface ConfigurationConditionalFeature
@Documented
@Target(TYPE)
@Retention(RUNTIME)
@ConditionalFeature(ConfigurationCondition.class)
public @interface ConfigurationConditionalFeature
Indicates that the feature will only be loaded if, at least, one condition is met. The
values are retrieved from the configuration, properties or environment variables.
- Since:
- 1.5.0
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Defines all the expected values to enable the feature.
-
Element Details
-
value
String[] valueDefines the name of the values to be read from the configuration, properties or environment variables.- Returns:
- Name of the values to be read
- Since:
- 1.5.0
-
-
-
expectedValue
String[] expectedValueDefines all the expected values to enable the feature. Only one of these is needed to activate the feature.- Returns:
- Expected value to enable the feature
- Since:
- 1.5.0
- Default:
- {"true", "enabled", "yes", "1"}
-