public class SpringProfileDocumentMatcher extends Object implements YamlProcessor.DocumentMatcher
YamlProcessor.DocumentMatcher backed by Environment.getActiveProfiles(). A YAML
document matches if it contains an element "spring.profiles" (a comma-separated list)
and one of the profiles is in the active list.| Constructor and Description |
|---|
SpringProfileDocumentMatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
addActiveProfiles(String... profiles) |
YamlProcessor.MatchStatus |
matches(Properties properties)
Test if the given properties match.
|
public void addActiveProfiles(String... profiles)
public YamlProcessor.MatchStatus matches(Properties properties)
YamlProcessor.DocumentMatchermatches in interface YamlProcessor.DocumentMatcherproperties - the properties to testCopyright © 2013. All rights reserved.