public interface PropertySourceLoader extends Toggleable, PropertySourceLocator, PropertySourceReader
Modifier and Type | Method and Description |
---|---|
default java.util.Optional<PropertySource> |
load(Environment environment)
Load a
PropertySource for the given Environment . |
java.util.Optional<PropertySource> |
load(java.lang.String resourceName,
ResourceLoader resourceLoader)
Load a
PropertySource for the given Environment . |
java.util.Optional<PropertySource> |
loadEnv(java.lang.String resourceName,
ResourceLoader resourceLoader,
ActiveEnvironment activeEnvironment)
Load a
PropertySource for the given Environment . |
isEnabled
getExtensions, read, read
default java.util.Optional<PropertySource> load(Environment environment)
PropertySource
for the given Environment
.load
in interface PropertySourceLocator
environment
- The environmentPropertySource
java.util.Optional<PropertySource> load(java.lang.String resourceName, ResourceLoader resourceLoader)
PropertySource
for the given Environment
.resourceName
- The resourceName of the resource to loadresourceLoader
- The ResourceLoader
to retrieve the resourcePropertySource
java.util.Optional<PropertySource> loadEnv(java.lang.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