public final class ConditionEvaluationReport
extends java.lang.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 |
find(org.springframework.beans.factory.BeanFactory beanFactory)
Attempt to find the
ConditionEvaluationReport for the specified bean
factory. |
static ConditionEvaluationReport |
get(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Obtain a
ConditionEvaluationReport for the specified bean factory. |
java.util.Map<java.lang.String,ConditionEvaluationReport.ConditionAndOutcomes> |
getConditionAndOutcomesBySource()
Returns condition outcomes from this report, grouped by the source.
|
ConditionEvaluationReport |
getDelta(ConditionEvaluationReport previousReport) |
java.util.List<java.lang.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).
|
java.util.Set<java.lang.String> |
getUnconditionalClasses()
Returns the names of the classes that were evaluated but were not conditional.
|
void |
recordConditionEvaluation(java.lang.String source,
org.springframework.context.annotation.Condition condition,
ConditionOutcome outcome)
Record the occurrence of condition evaluation.
|
void |
recordEvaluationCandidates(java.util.List<java.lang.String> evaluationCandidates)
Records the names of the classes that are candidates for condition evaluation.
|
void |
recordExclusions(java.util.Collection<java.lang.String> exclusions)
Records the names of the classes that have been excluded from condition evaluation.
|
public void recordConditionEvaluation(java.lang.String source,
org.springframework.context.annotation.Condition condition,
ConditionOutcome outcome)
source - the source of the condition (class or method name)condition - the condition evaluatedoutcome - the condition outcomepublic void recordExclusions(java.util.Collection<java.lang.String> exclusions)
exclusions - the names of the excluded classespublic void recordEvaluationCandidates(java.util.List<java.lang.String> evaluationCandidates)
evaluationCandidates - the names of the classes whose conditions will be
evaluatedpublic java.util.Map<java.lang.String,ConditionEvaluationReport.ConditionAndOutcomes> getConditionAndOutcomesBySource()
public java.util.List<java.lang.String> getExclusions()
public java.util.Set<java.lang.String> getUnconditionalClasses()
public ConditionEvaluationReport getParent()
public static ConditionEvaluationReport find(org.springframework.beans.factory.BeanFactory beanFactory)
ConditionEvaluationReport for the specified bean
factory.beanFactory - the bean factory (may be null)ConditionEvaluationReport or nullpublic static ConditionEvaluationReport get(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
ConditionEvaluationReport for the specified bean factory.beanFactory - the bean factoryConditionEvaluationReportpublic ConditionEvaluationReport getDelta(ConditionEvaluationReport previousReport)