public final class ConditionEvaluationReport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConditionEvaluationReport.ConditionAndOutcome
Provides access to a single
Condition and ConditionOutcome . |
static class |
ConditionEvaluationReport.ConditionAndOutcomes
Provides access to a number of
ConditionEvaluationReport.ConditionAndOutcome items. |
Modifier and Type | Method and Description |
---|---|
static ConditionEvaluationReport |
get(ConfigurableListableBeanFactory beanFactory)
Obtain a
ConditionEvaluationReport for the specified bean factory. |
Map<String,ConditionEvaluationReport.ConditionAndOutcomes> |
getConditionAndOutcomesBySource()
Returns condition outcomes from this report, grouped by the source.
|
ConditionEvaluationReport |
getDelta(ConditionEvaluationReport previousReport) |
List<String> |
getExclusions()
Returns the names of the classes that have been excluded from condition evaluation.
|
ConditionEvaluationReport |
getParent()
The parent report (from a parent BeanFactory if there is one).
|
Set<String> |
getUnconditionalClasses()
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.
|
public void recordConditionEvaluation(String source, Condition condition, ConditionOutcome outcome)
source
- the source of the condition (class or method name)condition
- the condition evaluatedoutcome
- the condition outcomepublic void recordExclusions(Collection<String> exclusions)
exclusions
- the names of the excluded classespublic void recordEvaluationCandidates(List<String> evaluationCandidates)
evaluationCandidates
- the names of the classes whose conditions will be
evaluatedpublic Map<String,ConditionEvaluationReport.ConditionAndOutcomes> getConditionAndOutcomesBySource()
public List<String> getExclusions()
public Set<String> getUnconditionalClasses()
public ConditionEvaluationReport getParent()
public static ConditionEvaluationReport get(ConfigurableListableBeanFactory beanFactory)
ConditionEvaluationReport
for the specified bean factory.beanFactory
- the bean factoryConditionEvaluationReport
public ConditionEvaluationReport getDelta(ConditionEvaluationReport previousReport)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.