public class OnPropertyListCondition extends SpringBootCondition
Condition
that checks if a property whose value is a list is defined in the
environment.Modifier | Constructor and Description |
---|---|
protected |
OnPropertyListCondition(String propertyName,
Supplier<ConditionMessage.Builder> messageBuilder)
Create a new instance with the property to check and the message builder to use.
|
Modifier and Type | Method and Description |
---|---|
ConditionOutcome |
getMatchOutcome(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata)
Determine the outcome of the match along with suitable log output.
|
anyMatches, logOutcome, matches, matches
protected OnPropertyListCondition(String propertyName, Supplier<ConditionMessage.Builder> messageBuilder)
propertyName
- the name of the propertymessageBuilder
- a message builder supplier that should provide a fresh
instance on each callpublic ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
SpringBootCondition
getMatchOutcome
in class SpringBootCondition
context
- the condition contextmetadata
- the annotation metadataCopyright © 2019 Pivotal Software, Inc.. All rights reserved.