public class OnBeanCondition extends SpringBootCondition implements org.springframework.context.annotation.ConfigurationCondition
Condition that checks for the presence or absence of specific beans.| 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 |
|---|---|
org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase |
getConfigurationPhase() |
ConditionOutcome |
getMatchOutcome(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata)
Determine the outcome of the match along with suitable log output.
|
anyMatches, matches, matchespublic static final String FACTORY_BEAN_OBJECT_TYPE
public org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase getConfigurationPhase()
getConfigurationPhase in interface org.springframework.context.annotation.ConfigurationConditionpublic ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
SpringBootConditiongetMatchOutcome in class SpringBootConditioncontext - the condition contextmetadata - the annotation metadataCopyright © 2015 Pivotal Software, Inc.. All rights reserved.