类 OnPropertyListCondition
java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.autoconfigure.condition.OnPropertyListCondition
- 所有已实现的接口:
Condition
Condition
that checks if a property whose value is a list is defined in the
environment.- 从以下版本开始:
- 2.0.5
- 作者:
- Eneias Silva, Stephane Nicoll
-
构造器概要
构造器限定符构造器说明protected
OnPropertyListCondition
(String propertyName, Supplier<ConditionMessage.Builder> messageBuilder) Create a new instance with the property to check and the message builder to use. -
方法概要
修饰符和类型方法说明getMatchOutcome
(ConditionContext context, AnnotatedTypeMetadata metadata) Determine the outcome of the match along with suitable log output.从类继承的方法 org.springframework.boot.autoconfigure.condition.SpringBootCondition
anyMatches, logOutcome, matches, matches
-
构造器详细资料
-
OnPropertyListCondition
protected OnPropertyListCondition(String propertyName, Supplier<ConditionMessage.Builder> messageBuilder) Create a new instance with the property to check and the message builder to use.- 参数:
propertyName
- the name of the propertymessageBuilder
- a message builder supplier that should provide a fresh instance on each call
-
-
方法详细资料
-
getMatchOutcome
从类复制的说明:SpringBootCondition
Determine the outcome of the match along with suitable log output.- 指定者:
getMatchOutcome
在类中SpringBootCondition
- 参数:
context
- the condition contextmetadata
- the annotation metadata- 返回:
- the condition outcome
-