Package migratedb.v1.core.api
Class Location
- java.lang.Object
-
- migratedb.v1.core.api.Location
-
- Direct Known Subclasses:
Location.ClassPathLocation,Location.CustomLocation,Location.FileSystemLocation
public abstract class Location extends Object
A location to load migrations from.Note: Although this class is declared abstract, it is not meant to be subclassed outside its compilation unit. To provide a custom location type, use
Location.CustomLocation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocation.ClassPathLocationstatic classLocation.CustomLocationstatic classLocation.FileSystemLocation
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ClassProvider<?>classProvider()abstract booleanexists()static Locationparse(String locationString, @Nullable ClassLoader classLoader)abstract ResourceProviderresourceProvider()abstract StringtoString()The inverse ofparse(String, ClassLoader).
-
-
-
Method Detail
-
parse
public static Location parse(String locationString, @Nullable ClassLoader classLoader)
-
resourceProvider
public abstract ResourceProvider resourceProvider()
-
classProvider
public abstract ClassProvider<?> classProvider()
-
exists
public abstract boolean exists()
-
toString
public abstract String toString()
The inverse ofparse(String, ClassLoader).
-
-