类 ConditionEvaluationReport
java.lang.Object
org.springframework.boot.autoconfigure.condition.ConditionEvaluationReport
Records condition evaluation details for reporting and logging.
- 从以下版本开始:
- 1.0.0
- 作者:
- Greg Turnquist, Dave Syer, Phillip Webb, Andy Wilkinson, Stephane Nicoll
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Provides access to a singleCondition
andConditionOutcome
.static class
Provides access to a number ofConditionEvaluationReport.ConditionAndOutcome
items. -
方法概要
修饰符和类型方法说明static ConditionEvaluationReport
find
(BeanFactory beanFactory) Attempt to find theConditionEvaluationReport
for the specified bean factory.static ConditionEvaluationReport
get
(ConfigurableListableBeanFactory beanFactory) Obtain aConditionEvaluationReport
for the specified bean factory.Returns condition outcomes from this report, grouped by the source.getDelta
(ConditionEvaluationReport previousReport) Returns the names of the classes that have been excluded from condition evaluation.The parent report (from a parent BeanFactory if there is one).Returns the names of the classes that were evaluated but were not conditional.void
recordConditionEvaluation
(String source, Condition condition, ConditionOutcome outcome) Record the occurrence of condition evaluation.void
recordEvaluationCandidates
(List<String> evaluationCandidates) Records the names of the classes that are candidates for condition evaluation.void
recordExclusions
(Collection<String> exclusions) Records the names of the classes that have been excluded from condition evaluation.
-
方法详细资料
-
recordConditionEvaluation
Record the occurrence of condition evaluation.- 参数:
source
- the source of the condition (class or method name)condition
- the condition evaluatedoutcome
- the condition outcome
-
recordExclusions
Records the names of the classes that have been excluded from condition evaluation.- 参数:
exclusions
- the names of the excluded classes
-
recordEvaluationCandidates
Records the names of the classes that are candidates for condition evaluation.- 参数:
evaluationCandidates
- the names of the classes whose conditions will be evaluated
-
getConditionAndOutcomesBySource
Returns condition outcomes from this report, grouped by the source.- 返回:
- the condition outcomes
-
getExclusions
Returns the names of the classes that have been excluded from condition evaluation.- 返回:
- the names of the excluded classes
-
getUnconditionalClasses
Returns the names of the classes that were evaluated but were not conditional.- 返回:
- the names of the unconditional classes
-
getParent
The parent report (from a parent BeanFactory if there is one).- 返回:
- the parent report (or null if there isn't one)
-
find
Attempt to find theConditionEvaluationReport
for the specified bean factory.- 参数:
beanFactory
- the bean factory (may benull
)- 返回:
- the
ConditionEvaluationReport
ornull
-
get
Obtain aConditionEvaluationReport
for the specified bean factory.- 参数:
beanFactory
- the bean factory- 返回:
- an existing or new
ConditionEvaluationReport
-
getDelta
-