Class FlywayMigrationInitializer
java.lang.Object
org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer
- All Implemented Interfaces:
InitializingBean
,Ordered
- Since:
- 1.3.0
- Author:
- Phillip Webb
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionFlywayMigrationInitializer
(org.flywaydb.core.Flyway flyway) Create a newFlywayMigrationInitializer
instance.FlywayMigrationInitializer
(org.flywaydb.core.Flyway flyway, FlywayMigrationStrategy migrationStrategy) Create a newFlywayMigrationInitializer
instance. -
Method Summary
-
Constructor Details
-
FlywayMigrationInitializer
public FlywayMigrationInitializer(org.flywaydb.core.Flyway flyway) Create a newFlywayMigrationInitializer
instance.- Parameters:
flyway
- the flyway instance
-
FlywayMigrationInitializer
public FlywayMigrationInitializer(org.flywaydb.core.Flyway flyway, FlywayMigrationStrategy migrationStrategy) Create a newFlywayMigrationInitializer
instance.- Parameters:
flyway
- the flyway instancemigrationStrategy
- the migration strategy ornull
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
getOrder
public int getOrder() -
setOrder
public void setOrder(int order)
-