Class LightConditionalOnClass

  • All Implemented Interfaces:
    org.springframework.context.annotation.Condition
    Direct Known Subclasses:
    AopConditionalOnClass, LightConditionalOnMissingClass

    public class LightConditionalOnClass
    extends java.lang.Object
    implements org.springframework.context.annotation.Condition
    Verify the presence of a Class in the ClassLoader.

    Lightweight version of org.springframework.boot.autoconfigure.condition.ConditionalOnClass, without spring-boot.

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

      Fields 
      Modifier and Type Field Description
      private java.lang.String className  
    • 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
    • Field Detail

      • className

        private final java.lang.String className
    • Constructor Detail

      • LightConditionalOnClass

        public LightConditionalOnClass​(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