public abstract class SpringBootCondition extends Object implements org.springframework.context.annotation.Condition
Condition
implementations used with Spring Boot. Provides sensible
logging to help the user diagnose what classes are loaded.Constructor and Description |
---|
SpringBootCondition() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
anyMatches(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata,
org.springframework.context.annotation.Condition... conditions)
Return true if any of the specified conditions match.
|
abstract ConditionOutcome |
getMatchOutcome(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata)
Determine the outcome of the match along with suitable log output.
|
protected void |
logOutcome(String classOrMethodName,
ConditionOutcome outcome) |
boolean |
matches(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata) |
protected boolean |
matches(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata,
org.springframework.context.annotation.Condition condition)
Return true if any of the specified condition matches.
|
public final boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
matches
in interface org.springframework.context.annotation.Condition
protected final void logOutcome(String classOrMethodName, ConditionOutcome outcome)
public abstract ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
context
- the condition contextmetadata
- the annotation metadataprotected final boolean anyMatches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata, org.springframework.context.annotation.Condition... conditions)
context
- the contextmetadata
- the annotation meta-dataconditions
- conditions to testtrue
if any condition matches.protected final boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata, org.springframework.context.annotation.Condition condition)
context
- the contextmetadata
- the annotation meta-datacondition
- condition to testtrue
if the condition matches.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.