Class ClasspathWildcardPropertySourceImporter
java.lang.Object
io.micronaut.context.env.ClasspathPropertySourceImporter
io.micronaut.context.env.ClasspathWildcardPropertySourceImporter
- All Implemented Interfaces:
PropertySourceImporter<ClasspathPropertySourceImporter.ClasspathImport>, Toggleable, AutoCloseable
Imports and merges property sources from all matching classpath locations.
-
Nested Class Summary
Nested classes/interfaces inherited from class ClasspathPropertySourceImporter
ClasspathPropertySourceImporter.ClasspathImportNested classes/interfaces inherited from interface PropertySourceImporter
PropertySourceImporter.ImportContext<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewImportDeclaration(ConvertibleValues<Object> values) Convert structured config import values into a type-safe import declaration consumed by this importer.newImportDeclaration(ConnectionString connectionString) Convert the raw connection string into a type-safe import declaration consumed by this importer.Methods inherited from class ClasspathPropertySourceImporter
importPropertySourceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertySourceImporter
closeMethods inherited from interface Toggleable
isEnabled
-
Constructor Details
-
ClasspathWildcardPropertySourceImporter
public ClasspathWildcardPropertySourceImporter()
-
-
Method Details
-
getProvider
- Specified by:
getProviderin interfacePropertySourceImporter<ClasspathPropertySourceImporter.ClasspathImport>- Overrides:
getProviderin classClasspathPropertySourceImporter- Returns:
- The provider this importer supports.
-
newImportDeclaration
public ClasspathPropertySourceImporter.ClasspathImport newImportDeclaration(ConnectionString connectionString) Description copied from interface:PropertySourceImporterConvert the raw connection string into a type-safe import declaration consumed by this importer.Micronaut invokes this method once for each scalar
micronaut.config.importentry before callingPropertySourceImporter.importPropertySource(ImportContext). Implementations should validate any importer-specific semantics here and return an immutable declaration value suitable for repeated reads within the same load cycle.- Specified by:
newImportDeclarationin interfacePropertySourceImporter<ClasspathPropertySourceImporter.ClasspathImport>- Overrides:
newImportDeclarationin classClasspathPropertySourceImporter- Parameters:
connectionString- The parsed connection string declaration- Returns:
- The typed import declaration
-
newImportDeclaration
public ClasspathPropertySourceImporter.ClasspathImport newImportDeclaration(ConvertibleValues<Object> values) Description copied from interface:PropertySourceImporterConvert structured config import values into a type-safe import declaration consumed by this importer.Micronaut invokes this method for map-based
micronaut.config.importdeclarations after resolving the requiredproviderfield. Implementations should validate required keys and throw a configuration exception if the declaration is invalid.- Specified by:
newImportDeclarationin interfacePropertySourceImporter<ClasspathPropertySourceImporter.ClasspathImport>- Overrides:
newImportDeclarationin classClasspathPropertySourceImporter- Parameters:
values- The structured config import values- Returns:
- The typed import declaration
-