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
    Modifier and Type
    Required Element
    Description
    Defines the name of the values to be read from the configuration, properties or environment variables.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines all the expected values to enable the feature.
  • Element Details

    • value

      String[] value
      Defines 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[] expectedValue
      Defines 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"}