Class SpringBootAdminClientEnabledCondition
java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
de.codecentric.boot.admin.client.config.SpringBootAdminClientEnabledCondition
- All Implemented Interfaces:
org.springframework.context.annotation.Condition
public class SpringBootAdminClientEnabledCondition
extends org.springframework.boot.autoconfigure.condition.SpringBootCondition
This condition checks if the client should be enabled. Two properties are checked:
spring.boot.admin.client.enabled and spring.boot.admin.client.url. The following table
shows under which conditions the client is active.
| enabled: false | enabled: true (default) |
--------- | -------------- | ----------------------- |
url empty | inactive | inactive |
(default) | | |
--------- | -------------- | ----------------------- |
url set | inactive | active |
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.condition.ConditionOutcomegetMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata annotatedTypeMetadata) Methods inherited from class org.springframework.boot.autoconfigure.condition.SpringBootCondition
anyMatches, logOutcome, matches, matches
-
Constructor Details
-
SpringBootAdminClientEnabledCondition
public SpringBootAdminClientEnabledCondition()
-
-
Method Details
-
getMatchOutcome
public org.springframework.boot.autoconfigure.condition.ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata annotatedTypeMetadata) - Specified by:
getMatchOutcomein classorg.springframework.boot.autoconfigure.condition.SpringBootCondition
-