Package org.flywaydb.core.api
Interface ResourceProvider
-
public interface ResourceProviderA facility to obtain loadable resources.
-
-
Method Summary
Modifier and Type Method Description LoadableResourcegetResource(java.lang.String name)Retrieves the resource with this name.java.util.Collection<LoadableResource>getResources(java.lang.String prefix, java.lang.String[] suffixes)Retrieve all resources whose name begins with this prefix and ends with any of these suffixes.
-
-
-
Method Detail
-
getResource
LoadableResource getResource(java.lang.String name)
Retrieves the resource with this name.- Parameters:
name- The name of the resource.- Returns:
- The resource or
nullif not found.
-
getResources
java.util.Collection<LoadableResource> getResources(java.lang.String prefix, java.lang.String[] suffixes)
Retrieve all resources whose name begins with this prefix and ends with any of these suffixes.- Parameters:
prefix- The prefix.suffixes- The suffixes.- Returns:
- The matching resources.
-
-