Class AbstractQualifiedBeanCondition

java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.axonframework.extension.springboot.util.AbstractQualifiedBeanCondition
All Implemented Interfaces:
org.springframework.context.annotation.Condition, org.springframework.context.annotation.ConfigurationCondition
Direct Known Subclasses:
OnMissingQualifiedBeanCondition, OnQualifiedBeanCondition

public abstract class AbstractQualifiedBeanCondition extends org.springframework.boot.autoconfigure.condition.SpringBootCondition implements org.springframework.context.annotation.ConfigurationCondition
Abstract implementations for conditions that match against the availability of beans of a specific type with a given qualifier.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.context.annotation.ConfigurationCondition

    org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractQualifiedBeanCondition(String annotationName, String beanClassAttribute, String qualifierAttribute)
    Initialize the condition, looking for properties on a given annotation
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract org.springframework.boot.autoconfigure.condition.ConditionOutcome
    buildOutcome(boolean anyMatch, String message)
     
    org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase
     
    org.springframework.boot.autoconfigure.condition.ConditionOutcome
    getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
     

    Methods inherited from class org.springframework.boot.autoconfigure.condition.SpringBootCondition

    anyMatches, logOutcome, matches, matches

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.annotation.Condition

    matches
  • Constructor Details

    • AbstractQualifiedBeanCondition

      public AbstractQualifiedBeanCondition(String annotationName, String beanClassAttribute, String qualifierAttribute)
      Initialize the condition, looking for properties on a given annotation
      Parameters:
      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.
  • Method Details

    • getConfigurationPhase

      @Nonnull public org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase getConfigurationPhase()
      Specified by:
      getConfigurationPhase in interface org.springframework.context.annotation.ConfigurationCondition
    • getMatchOutcome

      public org.springframework.boot.autoconfigure.condition.ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
      Specified by:
      getMatchOutcome in class org.springframework.boot.autoconfigure.condition.SpringBootCondition
    • buildOutcome

      protected abstract org.springframework.boot.autoconfigure.condition.ConditionOutcome buildOutcome(boolean anyMatch, String message)