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
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionFallback behavior whenmanagement.info.<name>.enabled
has not been set.
-
Element Details
-
value
String valueThe name of the info contributor.- Returns:
- the name of the info contributor
-
-
-
fallback
InfoContributorFallback fallbackFallback behavior whenmanagement.info.<name>.enabled
has not been set.- Returns:
- the fallback behavior
- Default:
- USE_DEFAULTS_PROPERTY
-