Class ConfigImportPropertySourcesLocator
java.lang.Object
io.micronaut.context.env.ConfigImportPropertySourcesLocator
- All Implemented Interfaces:
PropertySourcesLocator, Closeable, AutoCloseable
@Internal
public final class ConfigImportPropertySourcesLocator
extends Object
implements PropertySourcesLocator, Closeable
Resolves
micronaut.config.import declarations and loads the associated property sources.- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionConfigImportPropertySourcesLocator(@Nullable Supplier<Collection<PropertySourceImporter<?>>> propertySourceImporterSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()load(Environment environment) Locate aPropertySources for the given environment.
-
Constructor Details
-
ConfigImportPropertySourcesLocator
public ConfigImportPropertySourcesLocator() -
ConfigImportPropertySourcesLocator
public ConfigImportPropertySourcesLocator(@Nullable Supplier<Collection<PropertySourceImporter<?>>> propertySourceImporterSupplier)
-
-
Method Details
-
load
Description copied from interface:PropertySourcesLocatorLocate aPropertySources for the given environment.- Specified by:
loadin interfacePropertySourcesLocator- Parameters:
environment- The environment- Returns:
- The located property sources
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-