ConditionEvaluation class final

The outcome of one condition evaluated while a context loaded its modules: which bean or class it guarded, and whether it matched.

Use these to find out why a bean is missing or present. Read them from AnnotationConfigApplicationContext.conditionEvaluations; SpringApplication prints them for --debug, as Spring Boot's ConditionEvaluationReport does.

Constructors

ConditionEvaluation(String source, Condition condition, {required bool matched})
Records that condition, guarding source, gave matched.
const

Properties

condition → Condition
The evaluated condition; its toString describes it in the report.
final
hashCode → int
The hash code for this object.
no setterinherited
matched → bool
Whether the condition matched.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String
What the condition guards: a bean name, a ConditionGroup.key (a configuration class such as package:app#CacheConfig) or @PropertySource <locations>.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited