Class LightConditionalOnMissingBean

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

    public class LightConditionalOnMissingBean
    extends LightConditionalOnBean
    Conditional that only matches when no beans meeting the specified requirements are already contained in the BeanFactory. None of the requirements must be met for the condition to match and the requirements do not have to be met by the same bean.

    Similar to Spring-Boot annotation without spring-boot dependencies {link org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean}

    Since:
    1.0.1
    See Also:
    Spring-Boot annotation javadoc
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(org.springframework.context.annotation.ConditionContext conditionContext, org.springframework.core.type.AnnotatedTypeMetadata annotatedTypeMetadata)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LightConditionalOnMissingBean

        public LightConditionalOnMissingBean​(java.lang.String beanName)
    • Method Detail

      • matches

        public boolean matches​(org.springframework.context.annotation.ConditionContext conditionContext,
                               org.springframework.core.type.AnnotatedTypeMetadata annotatedTypeMetadata)
        Specified by:
        matches in interface org.springframework.context.annotation.Condition
        Overrides:
        matches in class LightConditionalOnBean