public class OnGcpEnvironmentCondition
extends org.springframework.boot.autoconfigure.condition.SpringBootCondition
Condition
that determines which GCP environment the application is
running on.Constructor and Description |
---|
OnGcpEnvironmentCondition() |
Modifier and Type | Method and Description |
---|---|
org.springframework.boot.autoconfigure.condition.ConditionOutcome |
getMatchOutcome(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata)
Determines whether the current runtime environment matches the one passed through the annotation.
|
public org.springframework.boot.autoconfigure.condition.ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
getMatchOutcome
in class org.springframework.boot.autoconfigure.condition.SpringBootCondition
context
- the spring context at the point in time the condition is being evaluatedmetadata
- annotation metadata containing all acceptable GCP environmentsorg.springframework.beans.factory.NoSuchBeanDefinitionException
- if no GcpEnvironmentProvider is found in
spring contextCopyright © 2021. All rights reserved.