Class QuarkusFlywayResourceProvider

  • All Implemented Interfaces:
    org.flywaydb.core.api.ResourceProvider

    public class QuarkusFlywayResourceProvider
    extends Object
    implements org.flywaydb.core.api.ResourceProvider
    This class is very similar to Scanner TODO: refactor upstream to move common methods to utility class
    • Constructor Detail

      • QuarkusFlywayResourceProvider

        public QuarkusFlywayResourceProvider​(Collection<org.flywaydb.core.api.resource.LoadableResource> resources)
    • Method Detail

      • getResource

        public org.flywaydb.core.api.resource.LoadableResource getResource​(String name)
        Specified by:
        getResource in interface org.flywaydb.core.api.ResourceProvider
      • getResources

        public Collection<org.flywaydb.core.api.resource.LoadableResource> getResources​(String prefix,
                                                                                        String... suffixes)
        Returns all known resources starting with the specified prefix and ending with any of the specified suffixes.
        Specified by:
        getResources in interface org.flywaydb.core.api.ResourceProvider
        Parameters:
        prefix - The prefix of the resource names to match.
        suffixes - The suffixes of the resource names to match.
        Returns:
        The resources that were found.