public class OnBeanCondition extends SpringBootCondition implements ConfigurationCondition
Condition that checks for the presence or absence of specific beans.ConfigurationCondition.ConfigurationPhase| Modifier and Type | Field and Description |
|---|---|
static String |
FACTORY_BEAN_OBJECT_TYPE
Bean definition attribute name for factory beans to signal their product type (if
known and it can't be deduced from the factory bean class).
|
| Constructor and Description |
|---|
OnBeanCondition() |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationCondition.ConfigurationPhase |
getConfigurationPhase() |
ConditionOutcome |
getMatchOutcome(ConditionContext context,
AnnotatedTypeMetadata metadata)
Determine the outcome of the match along with suitable log output.
|
anyMatches, matches, matchespublic static final String FACTORY_BEAN_OBJECT_TYPE
public ConfigurationCondition.ConfigurationPhase getConfigurationPhase()
getConfigurationPhase in interface ConfigurationConditionpublic ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata)
SpringBootConditiongetMatchOutcome in class SpringBootConditioncontext - the condition contextmetadata - the annotation metadataCopyright © 2016 Pivotal Software, Inc.. All rights reserved.