Class MetadataRepositoryLoader
java.lang.Object
com.patbaumgartner.spring.migrator.core.MetadataRepositoryLoader
Collects Spring Boot configuration metadata from a resolved classpath.
Both jars and exploded class directories are supported, so metadata produced by the project itself or by a sibling module that has not been packaged yet is not lost. Entries are read in a stable order so that the same classpath always yields the same result, whichever build tool assembled it.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.boot.configurationmetadata.ConfigurationMetadataRepositoryload(Collection<Path> classpathEntries) Reads the configuration metadata contained in the given classpath entries.
-
Method Details
-
load
public static org.springframework.boot.configurationmetadata.ConfigurationMetadataRepository load(Collection<Path> classpathEntries) throws IOException Reads the configuration metadata contained in the given classpath entries.- Parameters:
classpathEntries- jars and directories making up the project classpath- Returns:
- the merged metadata repository
- Throws:
IOException- if a readable entry contains malformed metadata
-