@Configuration(proxyBeanMethods=false) @ConditionalOnMissingBean(value=org.flywaydb.core.Flyway.class) @EnableConfigurationProperties(value={DataSourceProperties.class,FlywayProperties.class}) public static class FlywayAutoConfiguration.FlywayConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
FlywayAutoConfiguration.FlywayConfiguration.FlywayInitializerJdbcOperationsDependencyConfiguration
Additional configuration to ensure that
JdbcOperations beans depend on
the flywayInitializer bean. |
protected static class |
FlywayAutoConfiguration.FlywayConfiguration.FlywayInitializerJpaDependencyConfiguration
Additional configuration to ensure that
EntityManagerFactory beans
depend on the flywayInitializer bean. |
protected static class |
FlywayAutoConfiguration.FlywayConfiguration.FlywayInitializerNamedParameterJdbcOperationsDependencyConfiguration
Additional configuration to ensure that
NamedParameterJdbcOperations
beans depend on the flywayInitializer bean. |
Constructor and Description |
---|
FlywayConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.flywaydb.core.Flyway |
flyway(FlywayProperties properties,
DataSourceProperties dataSourceProperties,
ResourceLoader resourceLoader,
ObjectProvider<DataSource> dataSource,
ObjectProvider<DataSource> flywayDataSource,
ObjectProvider<FlywayConfigurationCustomizer> fluentConfigurationCustomizers,
ObjectProvider<org.flywaydb.core.api.callback.Callback> callbacks,
ObjectProvider<org.flywaydb.core.api.callback.FlywayCallback> flywayCallbacks) |
FlywayMigrationInitializer |
flywayInitializer(org.flywaydb.core.Flyway flyway,
ObjectProvider<FlywayMigrationStrategy> migrationStrategy) |
@Bean public org.flywaydb.core.Flyway flyway(FlywayProperties properties, DataSourceProperties dataSourceProperties, ResourceLoader resourceLoader, ObjectProvider<DataSource> dataSource, @FlywayDataSource ObjectProvider<DataSource> flywayDataSource, ObjectProvider<FlywayConfigurationCustomizer> fluentConfigurationCustomizers, ObjectProvider<org.flywaydb.core.api.callback.Callback> callbacks, ObjectProvider<org.flywaydb.core.api.callback.FlywayCallback> flywayCallbacks)
@Bean @ConditionalOnMissingBean public FlywayMigrationInitializer flywayInitializer(org.flywaydb.core.Flyway flyway, ObjectProvider<FlywayMigrationStrategy> migrationStrategy)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.