Annotation Type ConditionalOnEnabledInfoContributor


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @Conditional(org.springframework.boot.actuate.autoconfigure.info.OnEnabledInfoContributorCondition.class) public @interface ConditionalOnEnabledInfoContributor
@Conditional that checks whether or not an info contributor is enabled. Matches if the value of the management.info.<name>.enabled property is true. Otherwise, use the specific fallback method.
Since:
2.0.0
Author:
Stephane Nicoll
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the info contributor.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Fallback behavior when management.info.<name>.enabled has not been set.
  • Element Details

    • value

      String value
      The name of the info contributor.
      Returns:
      the name of the info contributor
    • fallback

      Fallback behavior when management.info.<name>.enabled has not been set.
      Returns:
      the fallback behavior
      Default:
      USE_DEFAULTS_PROPERTY