Class LightConditionalOnMissingClass
- java.lang.Object
-
- com.github.frtu.spring.conditional.LightConditionalOnClass
-
- com.github.frtu.spring.conditional.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
-
-
Constructor Summary
Constructors Constructor Description LightConditionalOnMissingClass(java.lang.String className)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(org.springframework.context.annotation.ConditionContext conditionContext, org.springframework.core.type.AnnotatedTypeMetadata annotatedTypeMetadata)
-
-
-
Method Detail
-
matches
public boolean matches(org.springframework.context.annotation.ConditionContext conditionContext, org.springframework.core.type.AnnotatedTypeMetadata annotatedTypeMetadata)- Specified by:
matchesin interfaceorg.springframework.context.annotation.Condition- Overrides:
matchesin classLightConditionalOnClass
-
-