org.flywaydb.core.api.resolver.MigrationResolver Java Examples
The following examples show how to use
org.flywaydb.core.api.resolver.MigrationResolver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OptimizedFlywayTestExecutionListener.java From embedded-database-spring-test with Apache License 2.0 | 5 votes |
protected static Collection<ResolvedMigration> resolveMigrations(Flyway flyway, String... locations) throws ClassNotFoundException { MigrationResolver resolver = createMigrationResolver(flyway, locations); if (flywayVersion >= 52) { Object configInstance = getField(flyway, "configuration"); Class<?> contextType = ClassUtils.forName("org.flywaydb.core.api.resolver.Context", classLoader); Object contextInstance = ProxyFactory.getProxy(contextType, (MethodInterceptor) invocation -> "getConfiguration".equals(invocation.getMethod().getName()) ? configInstance : invocation.proceed()); return invokeMethod(resolver, "resolveMigrations", contextInstance); } else { return resolver.resolveMigrations(); } }
Example #2
Source File: FlywayConfigSnapshot.java From embedded-database-spring-test with Apache License 2.0 | 4 votes |
public List<MigrationResolver> getResolvers() { return resolvers; }