Class HealthContributorMembershipValidator
java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.HealthContributorMembershipValidator
- All Implemented Interfaces:
org.springframework.beans.factory.SmartInitializingSingleton
public class HealthContributorMembershipValidator
extends Object
implements org.springframework.beans.factory.SmartInitializingSingleton
SmartInitializingSingleton that validates health membership, throwing a
FailureAnalyzedException if an included or excluded contributor does not exist.
This implementation supports the same include/exclude patterns as
HealthContributorMembership.byIncludeExclude(Set, Set)- Since:
- 4.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCallback used to provide member information. -
Constructor Summary
ConstructorsConstructorDescriptionHealthContributorMembershipValidator(HealthContributorRegistry registry, @Nullable ReactiveHealthContributorRegistry fallbackRegistry, String disableValidationProperty, Consumer<HealthContributorMembershipValidator.Members> members) Create a newHealthContributorMembershipValidatorinstance. -
Method Summary
-
Constructor Details
-
HealthContributorMembershipValidator
public HealthContributorMembershipValidator(HealthContributorRegistry registry, @Nullable ReactiveHealthContributorRegistry fallbackRegistry, String disableValidationProperty, Consumer<HealthContributorMembershipValidator.Members> members) Create a newHealthContributorMembershipValidatorinstance.- Parameters:
registry- the health registryfallbackRegistry- the fallback registry ornulldisableValidationProperty- the property that can be used to disable validationmembers- consumer used to provide the members
-
-
Method Details
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiatedin interfaceorg.springframework.beans.factory.SmartInitializingSingleton
-