Package migratedb.v1.core.api.resource
Interface Resource
- All Known Implementing Classes:
ClassPathResource,FileSystemResource,ReaderResource,StringResource
public interface Resource
A textual resource (such as a .sql file) used by MigrateDB.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetName()static StringlastNameComponentOf(String name)
-
Method Details
-
getName
String getName()- Returns:
- The path of this resource, separated by forward slashes (
"/"on all platforms. Never ends with a slash.
-
getLastNameComponent
- Returns:
- Just the last component of the name of this resource, the "file name".
-
describeLocation
String describeLocation()- Returns:
- A hint that describes the physical location of this resource (like a full path to a file on disk)
-
read
- Returns:
- The contents of the resource.
-
lastNameComponentOf
-