public interface PropertySourceLoader
SpringFactoriesLoader
and used to load a
PropertySource
.Modifier and Type | Method and Description |
---|---|
String[] |
getFileExtensions()
Returns the file extensions that the loader supports (excluding the '.').
|
PropertySource<?> |
load(String name,
Resource resource,
String profileToLoad,
Predicate<String[]> acceptsProfiles)
Load the resource into a property source.
|
String[] getFileExtensions()
PropertySource<?> load(String name, Resource resource, String profileToLoad, Predicate<String[]> acceptsProfiles) throws IOException
name
- the name of the property sourceresource
- the resource to loadprofileToLoad
- the name of the profile to load or null
. The profile
can be used to load multi-document files (such as YAML). Simple property formats
should null
when asked to load a profile.acceptsProfiles
- predicate to determine if a particular profile is acceptednull
IOException
- if the source cannot be loadedCopyright © 2018 Pivotal Software, Inc.. All rights reserved.