public interface PropertySourceLoader extends Toggleable, PropertySourceLocator, PropertySourceReader
Modifier and Type | Method and Description |
---|---|
default Optional<PropertySource> |
load(Environment environment)
Load a
PropertySource for the given Environment . |
Optional<PropertySource> |
load(String resourceName,
ResourceLoader resourceLoader,
String environmentName)
Load a
PropertySource for the given Environment . |
isEnabled
getExtensions, read, read
default Optional<PropertySource> load(Environment environment)
PropertySource
for the given Environment
.load
in interface PropertySourceLocator
environment
- The environmentPropertySource
Optional<PropertySource> load(String resourceName, ResourceLoader resourceLoader, @Nullable String environmentName)
PropertySource
for the given Environment
.resourceName
- The resourceName of the resource to loadresourceLoader
- The ResourceLoader
to retrieve the resourceenvironmentName
- The environment name to load. Null if the default environment is to be usedPropertySource