Class LightConditionalOnMissingClass

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

    public class LightConditionalOnMissingClass
    extends LightConditionalOnClass
    Conditional that only matches when the specified classes are not on the classpath.

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

    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

      • LightConditionalOnMissingClass

        public LightConditionalOnMissingClass​(java.lang.String className)
    • 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 LightConditionalOnClass