public abstract class PropertyAndOneBeanCondition extends Object implements org.springframework.context.annotation.Condition
| 构造器和说明 |
|---|
PropertyAndOneBeanCondition() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract List<String> |
anyConfigKey()
配置中存在任意一个 Key 即可加载该 Bean,空代表不校验
|
protected abstract Class<?> |
beanType()
Bean 唯一性校验,空代表不校验
|
boolean |
matches(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata) |
protected abstract List<String> anyConfigKey()
protected abstract Class<?> beanType()
public boolean matches(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata)
matches 在接口中 org.springframework.context.annotation.ConditionCopyright © 2023. All rights reserved.