public class SpringProfileDocumentMatcher extends Object implements org.springframework.beans.factory.config.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() |
SpringProfileDocumentMatcher(String... profiles) |
Modifier and Type | Method and Description |
---|---|
void |
addActiveProfiles(String... profiles) |
org.springframework.beans.factory.config.YamlProcessor.MatchStatus |
matches(Properties properties) |
public SpringProfileDocumentMatcher()
public SpringProfileDocumentMatcher(String... profiles)
public void addActiveProfiles(String... profiles)
public org.springframework.beans.factory.config.YamlProcessor.MatchStatus matches(Properties properties)
matches
in interface org.springframework.beans.factory.config.YamlProcessor.DocumentMatcher
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.