public abstract class AbstractQualifiedBeanCondition
extends org.springframework.boot.autoconfigure.condition.SpringBootCondition
implements org.springframework.context.annotation.ConfigurationCondition
Constructor and Description |
---|
AbstractQualifiedBeanCondition(String annotationName,
String beanClassAttribute,
String qualifierAttribute)
Initialize the condition, looking for properties on a given annotation
|
Modifier and Type | Method and Description |
---|---|
protected abstract org.springframework.boot.autoconfigure.condition.ConditionOutcome |
buildOutcome(boolean anyMatch,
String message) |
org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase |
getConfigurationPhase() |
org.springframework.boot.autoconfigure.condition.ConditionOutcome |
getMatchOutcome(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata) |
anyMatches, logOutcome, matches, matches
public AbstractQualifiedBeanCondition(String annotationName, String beanClassAttribute, String qualifierAttribute)
annotationName
- The fully qualified class name of the annotation to find attributes on.beanClassAttribute
- The attribute containing the bean class.qualifierAttribute
- The attribute containing the qualifier.public org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase getConfigurationPhase()
getConfigurationPhase
in interface org.springframework.context.annotation.ConfigurationCondition
public org.springframework.boot.autoconfigure.condition.ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
getMatchOutcome
in class org.springframework.boot.autoconfigure.condition.SpringBootCondition
protected abstract org.springframework.boot.autoconfigure.condition.ConditionOutcome buildOutcome(boolean anyMatch, String message)
Copyright © 2010–2020. All rights reserved.