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, matches
public static final String FACTORY_BEAN_OBJECT_TYPE
public ConfigurationCondition.ConfigurationPhase getConfigurationPhase()
getConfigurationPhase
in interface ConfigurationCondition
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata)
SpringBootCondition
getMatchOutcome
in class SpringBootCondition
context
- the condition contextmetadata
- the annotation metadataCopyright © 2015 Pivotal Software, Inc.. All rights reserved.