Class OnMissingBeanCondition

  • All Implemented Interfaces:
    org.springframework.context.annotation.Condition, org.springframework.context.annotation.ConfigurationCondition

    public class OnMissingBeanCondition
    extends org.springframework.boot.autoconfigure.condition.SpringBootCondition
    implements org.springframework.context.annotation.ConfigurationCondition
    Condition that checks whether the specified bean by placeholder like: ${bean.name:defaultName} exists. Spring's ConditionalOnMissingBean does not support placeholder resolution.
    Version:
    $Id: $Id
    Author:
    Sergio.U.Bocchio
    • Nested Class Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)
      • Methods inherited from class org.springframework.boot.autoconfigure.condition.SpringBootCondition

        anyMatches, logOutcome, matches, matches
      • Methods inherited from interface org.springframework.context.annotation.Condition

        matches
    • Constructor Detail

      • OnMissingBeanCondition

        public OnMissingBeanCondition()
    • Method Detail

      • 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
      • getConfigurationPhase

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