|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.boot.config.PropertiesPropertySourceLoader
org.springframework.boot.config.YamlPropertySourceLoader
public class YamlPropertySourceLoader
Strategy to load '.yml' files into a PropertySource.
| Constructor Summary | |
|---|---|
YamlPropertySourceLoader(YamlProcessor.DocumentMatcher... matchers)
Create a YamlPropertySourceLoader instance with the specified matchers. |
|
| Method Summary | |
|---|---|
protected Properties |
loadProperties(org.springframework.core.io.Resource resource)
|
static YamlPropertySourceLoader |
matchAllLoader()
A property source loader that loads all properties and matches all documents. |
static YamlPropertySourceLoader |
springProfileAwareLoader(String[] activeProfiles)
A property source loader that matches documents that have no explicit profile or which have an explicit "spring.profiles.active" value in the current active profiles. |
boolean |
supports(org.springframework.core.io.Resource resource)
Returns true if the Resource is supported. |
| Methods inherited from class org.springframework.boot.config.PropertiesPropertySourceLoader |
|---|
load |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YamlPropertySourceLoader(YamlProcessor.DocumentMatcher... matchers)
YamlPropertySourceLoader instance with the specified matchers.
matchers - the document matchers| Method Detail |
|---|
public boolean supports(org.springframework.core.io.Resource resource)
PropertySourceLoadertrue if the Resource is supported.
supports in interface PropertySourceLoadersupports in class PropertiesPropertySourceLoader
protected Properties loadProperties(org.springframework.core.io.Resource resource)
throws IOException
loadProperties in class PropertiesPropertySourceLoaderIOExceptionpublic static YamlPropertySourceLoader matchAllLoader()
public static YamlPropertySourceLoader springProfileAwareLoader(String[] activeProfiles)
activeProfiles - the active profiles to match independent of file contents
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||