Class DatabaseSchemaLocator
java.lang.Object
org.springframework.modulith.events.jdbc.DatabaseSchemaLocator
Simple wrapper around a
ResourceLoader to load database specific schema files from the classpath.- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseSchemaLocator(ResourceLoader resourceLoader) Creates a newDatabaseSchemaLocatorfor the givenResourceLoader. -
Method Summary
Modifier and TypeMethodDescription(package private) ResourcegetSchemaResource(DatabaseType databaseType) Loads theResourcecopntaining the schema for the givenDatabaseTypefrom the classpath.
-
Constructor Details
-
DatabaseSchemaLocator
DatabaseSchemaLocator(ResourceLoader resourceLoader) Creates a newDatabaseSchemaLocatorfor the givenResourceLoader.- Parameters:
resourceLoader- must not be null.
-
-
Method Details
-
getSchemaResource
Loads theResourcecopntaining the schema for the givenDatabaseTypefrom the classpath.- Parameters:
databaseType- must not be null.- Returns:
- will never be null.
-