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.
|
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
public abstract ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
protected 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 © 2014. All rights reserved.