Class DefaultFlywayConfigurationCustomizer

java.lang.Object
io.micronaut.flyway.DefaultFlywayConfigurationCustomizer
All Implemented Interfaces:
io.micronaut.core.naming.Named, FlywayConfigurationCustomizer

public class DefaultFlywayConfigurationCustomizer extends Object implements FlywayConfigurationCustomizer
Default implementation of FlywayConfigurationCustomizer. Finds and configures all Named instances of the following Flyway types:
  • JavaMigration[]
  • Callback[]
  • MigrationResolver[]
  • ResourceProvider
  • ClassProvider
Since:
7.2.0
Author:
Jeremy Grelle
  • Method Details

    • customizeFluentConfiguration

      public void customizeFluentConfiguration(org.flywaydb.core.api.configuration.FluentConfiguration fluentConfiguration)
      Description copied from interface: FlywayConfigurationCustomizer
      A callback for customizing Flyway configuration by setting properties on the FluentConfiguration builder prior to execution of migrations.
      Specified by:
      customizeFluentConfiguration in interface FlywayConfigurationCustomizer
      Parameters:
      fluentConfiguration - The configuration to be customized
    • getName

      @NonNull public @NonNull String getName()
      Specified by:
      getName in interface io.micronaut.core.naming.Named