Package io.quarkus.flyway.runtime
Class QuarkusFlywayResourceProvider
- java.lang.Object
-
- io.quarkus.flyway.runtime.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 toScannerTODO: refactor upstream to move common methods to utility class
-
-
Constructor Summary
Constructors Constructor Description QuarkusFlywayResourceProvider(Collection<org.flywaydb.core.api.resource.LoadableResource> resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.flywaydb.core.api.resource.LoadableResourcegetResource(String name)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.
-
-
-
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:
getResourcein interfaceorg.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:
getResourcesin interfaceorg.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.
-
-