Class ValidatePatternTypeConverter

java.lang.Object
io.micronaut.flyway.ValidatePatternTypeConverter
All Implemented Interfaces:
io.micronaut.core.convert.TypeConverter<String,org.flywaydb.core.api.pattern.ValidatePattern>

@Singleton public class ValidatePatternTypeConverter extends Object implements io.micronaut.core.convert.TypeConverter<String,org.flywaydb.core.api.pattern.ValidatePattern>
Converts String's to Flyway ValidatePattern required for reading ignore-migration-patterns parameter.
Since:
5.4.1
Author:
Nenad Vico
See Also:
  • ValidatePattern
  • Constructor Details

    • ValidatePatternTypeConverter

      public ValidatePatternTypeConverter()
  • Method Details

    • convert

      public Optional<org.flywaydb.core.api.pattern.ValidatePattern> convert(String pattern, Class<org.flywaydb.core.api.pattern.ValidatePattern> targetType, io.micronaut.core.convert.ConversionContext context)
      Specified by:
      convert in interface io.micronaut.core.convert.TypeConverter<String,org.flywaydb.core.api.pattern.ValidatePattern>