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 to
Scanner
TODO: refactor upstream to move common methods to utility class-
Constructor Summary
ConstructorsConstructorDescriptionQuarkusFlywayResourceProvider(Collection<org.flywaydb.core.api.resource.LoadableResource> resources) -
Method Summary
Modifier and TypeMethodDescriptionorg.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 Details
-
QuarkusFlywayResourceProvider
public QuarkusFlywayResourceProvider(Collection<org.flywaydb.core.api.resource.LoadableResource> resources)
-
-
Method Details
-
getResource
- 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.
-