public class SpringProfileDocumentMatcher extends Object implements YamlProcessor.DocumentMatcher
YamlProcessor.DocumentMatcher backed by Environment.getActiveProfiles(). A YAML
document may define a "spring.profiles" element as a comma-separated list of Spring
profile names, optionally negated using the ! character. If both negated and
non-negated profiles are specified for a single document, at least one non-negated
profile must match and no negated profiles may match.| Constructor and Description |
|---|
SpringProfileDocumentMatcher() |
SpringProfileDocumentMatcher(String... profiles) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActiveProfiles(String... profiles) |
YamlProcessor.MatchStatus |
matches(Properties properties) |
public SpringProfileDocumentMatcher()
public SpringProfileDocumentMatcher(String... profiles)
public void addActiveProfiles(String... profiles)
public YamlProcessor.MatchStatus matches(Properties properties)
matches in interface YamlProcessor.DocumentMatcherCopyright © 2016 Pivotal Software, Inc.. All rights reserved.