@Configuration @ConditionalOnMissingBean(value=org.flywaydb.core.Flyway.class) @EnableConfigurationProperties(value=FlywayProperties.class) public static class FlywayAutoConfiguration.FlywayConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
FlywayAutoConfiguration.FlywayConfiguration.FlywayInitializerJpaDependencyConfiguration
Additional configuration to ensure that
EntityManagerFactory beans
depend-on the flywayInitializer bean. |
Constructor and Description |
---|
FlywayConfiguration(FlywayProperties properties,
ResourceLoader resourceLoader,
ObjectProvider<DataSource> dataSourceProvider,
ObjectProvider<DataSource> flywayDataSourceProvider,
ObjectProvider<FlywayMigrationStrategy> migrationStrategyProvider) |
Modifier and Type | Method and Description |
---|---|
void |
checkLocationExists() |
org.flywaydb.core.Flyway |
flyway() |
FlywayMigrationInitializer |
flywayInitializer(org.flywaydb.core.Flyway flyway) |
public FlywayConfiguration(FlywayProperties properties, ResourceLoader resourceLoader, ObjectProvider<DataSource> dataSourceProvider, @FlywayDataSource ObjectProvider<DataSource> flywayDataSourceProvider, ObjectProvider<FlywayMigrationStrategy> migrationStrategyProvider)
@PostConstruct public void checkLocationExists()
@Bean @ConfigurationProperties(prefix="flyway") public org.flywaydb.core.Flyway flyway()
@Bean @ConditionalOnMissingBean public FlywayMigrationInitializer flywayInitializer(org.flywaydb.core.Flyway flyway)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.