public class PropertySourcesLoader extends Object
MutablePropertySources using
PropertySourceLoaders.| Constructor and Description |
|---|
PropertySourcesLoader()
Create a new
PropertySourceLoader instance backed by a new
MutablePropertySources. |
PropertySourcesLoader(MutablePropertySources propertySources)
Create a new
PropertySourceLoader instance backed by the specified
MutablePropertySources. |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAllFileExtensions()
Returns all file extensions that could be loaded.
|
MutablePropertySources |
getPropertySources()
Return the
MutablePropertySources being loaded. |
PropertySource<?> |
load(Resource resource,
String name,
String profile)
Load the specified resource (if possible) and add it as the first source.
|
public PropertySourcesLoader()
PropertySourceLoader instance backed by a new
MutablePropertySources.public PropertySourcesLoader(MutablePropertySources propertySources)
PropertySourceLoader instance backed by the specified
MutablePropertySources.propertySources - the destination property sourcespublic PropertySource<?> load(Resource resource, String name, String profile) throws IOException
resource - the source resource (may be null).name - the root property name (may be null).profile - a specific profile to load or null to load the default.nullIOExceptionpublic MutablePropertySources getPropertySources()
MutablePropertySources being loaded.Copyright © 2014. All rights reserved.