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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.boot.autoconfigure.condition.ConditionOutcome
    getMatchOutcome(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getMatchOutcome in class org.springframework.boot.autoconfigure.condition.SpringBootCondition