Class LightConditionalOnMissingBean
- java.lang.Object
-
- com.github.frtu.spring.conditional.LightConditionalOnBean
-
- com.github.frtu.spring.conditional.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
-
-
Constructor Summary
Constructors Constructor Description LightConditionalOnMissingBean(java.lang.String beanName)
-
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 classLightConditionalOnBean
-
-