Class DatabaseSchemaLocator

java.lang.Object
org.springframework.modulith.events.jdbc.DatabaseSchemaLocator

public class DatabaseSchemaLocator extends Object
Simple wrapper around a ResourceLoader to load database specific schema files from the classpath.
Author:
Oliver Drotbohm
  • Constructor Details

  • Method Details

    • getSchemaResource

      Resource getSchemaResource(DatabaseType databaseType)
      Loads the Resource containing the schema for the given DatabaseType from the classpath.
      Parameters:
      databaseType - must not be null.
      Returns:
      will never be null.