Package io.micronaut.context.env
Interface PropertySourceLocator
-
- All Known Subinterfaces:
PropertySourceLoader
- All Known Implementing Classes:
AbstractPropertySourceLoader
,PropertiesPropertySourceLoader
,YamlPropertySourceLoader
public interface PropertySourceLocator
An interface for beans that are capable of locating aPropertySource
instance.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<PropertySource>
load(Environment environment)
Locate aPropertySource
for the given environment.
-
-
-
Method Detail
-
load
java.util.Optional<PropertySource> load(Environment environment)
Locate aPropertySource
for the given environment.- Parameters:
environment
- The environment- Returns:
- The located property source
-
-