public class ReplaceableCompositeMigrationResolver extends Object implements org.flywaydb.core.api.resolver.MigrationResolver
Facility for retrieving and sorting the available migrations from the classpath through the various migration resolvers.
Constructor and Description |
---|
ReplaceableCompositeMigrationResolver(org.flywaydb.core.internal.dbsupport.DbSupport dbSupport,
ClassLoader classLoader,
org.flywaydb.core.internal.util.Locations locations,
String encoding,
String sqlMigrationPrefix,
String sqlMigrationSeparator,
String sqlMigrationSuffix,
org.flywaydb.core.internal.util.PlaceholderReplacer placeholderReplacer,
org.flywaydb.core.api.resolver.MigrationResolver... customMigrationResolvers)
Creates a new CompositeMigrationResolver.
|
Modifier and Type | Method and Description |
---|---|
List<org.flywaydb.core.api.resolver.ResolvedMigration> |
resolveMigrations()
Finds all available migrations using all migration resolvers (sql, java, …).
|
public ReplaceableCompositeMigrationResolver(org.flywaydb.core.internal.dbsupport.DbSupport dbSupport, ClassLoader classLoader, org.flywaydb.core.internal.util.Locations locations, String encoding, String sqlMigrationPrefix, String sqlMigrationSeparator, String sqlMigrationSuffix, org.flywaydb.core.internal.util.PlaceholderReplacer placeholderReplacer, org.flywaydb.core.api.resolver.MigrationResolver... customMigrationResolvers)
Creates a new CompositeMigrationResolver.
dbSupport
- The database-specific support.classLoader
- The ClassLoader for loading migrations on the classpath.locations
- The locations where migrations are located.encoding
- The encoding of Sql migrations.sqlMigrationPrefix
- The file name prefix for sql migrations.sqlMigrationSeparator
- The file name separator for sql migrations.sqlMigrationSuffix
- The file name suffix for sql migrations.placeholderReplacer
- The placeholder replacer to use.customMigrationResolvers
- Custom Migration Resolvers.public List<org.flywaydb.core.api.resolver.ResolvedMigration> resolveMigrations()
Finds all available migrations using all migration resolvers (sql, java, …).
resolveMigrations
in interface org.flywaydb.core.api.resolver.MigrationResolver
org.flywaydb.core.api.FlywayException
- when the available migrations have overlapping versions.Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.