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. |
default Optional<PropertySource> |
load(String resourceName,
ResourceLoader resourceLoader)
Load a
PropertySource for the given Environment. |
Optional<PropertySource> |
load(String resourceName,
ResourceLoader resourceLoader,
String environmentName)
Deprecated.
Use
load(String, ResourceLoader) or loadEnv(String, ResourceLoader, ActiveEnvironment) (String, ResourceLoader, ActiveEnvironment)} instead |
default Optional<PropertySource> |
loadEnv(String resourceName,
ResourceLoader resourceLoader,
ActiveEnvironment activeEnvironment)
Load a
PropertySource for the given Environment. |
isEnabledgetExtensions, read, readdefault Optional<PropertySource> load(Environment environment)
PropertySource for the given Environment.load in interface PropertySourceLocatorenvironment - The environmentPropertySourcedefault Optional<PropertySource> load(String resourceName, ResourceLoader resourceLoader)
PropertySource for the given Environment.resourceName - The resourceName of the resource to loadresourceLoader - The ResourceLoader to retrieve the resourcePropertySource@Deprecated Optional<PropertySource> load(String resourceName, ResourceLoader resourceLoader, @Nullable String environmentName)
load(String, ResourceLoader) or loadEnv(String, ResourceLoader, ActiveEnvironment) (String, ResourceLoader, ActiveEnvironment)} insteadPropertySource 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 usedPropertySourcedefault Optional<PropertySource> loadEnv(String resourceName, ResourceLoader resourceLoader, ActiveEnvironment activeEnvironment)
PropertySource for the given Environment.resourceName - The resourceName of the resource to loadresourceLoader - The ResourceLoader to retrieve the resourceactiveEnvironment - The environment to loadPropertySource