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