public abstract class SpringBootCondition extends Object implements 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(ConditionContext context,
AnnotatedTypeMetadata metadata,
Condition... conditions)
Return true if any of the specified conditions match.
|
abstract ConditionOutcome |
getMatchOutcome(ConditionContext context,
AnnotatedTypeMetadata metadata)
Determine the outcome of the match along with suitable log output.
|
boolean |
matches(ConditionContext context,
AnnotatedTypeMetadata metadata) |
protected boolean |
matches(ConditionContext context,
AnnotatedTypeMetadata metadata,
Condition condition)
Return true if any of the specified condition matches.
|
public final boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata)
public abstract ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata)
protected final boolean anyMatches(ConditionContext context, AnnotatedTypeMetadata metadata, Condition... conditions)
context
- the contextmetadata
- the annotation meta-dataconditions
- conditions to testtrue
if any condition matches.protected final boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata, Condition condition)
context
- the contextmetadata
- the annotation meta-datacondition
- condition to testtrue
if the condition matches.Copyright © 2014. All rights reserved.