Package org.flywaydb.core.api.resource
Class LoadableResource
java.lang.Object
org.flywaydb.core.api.resource.LoadableResource
- All Implemented Interfaces:
Comparable<LoadableResource>,Resource
public abstract class LoadableResource
extends Object
implements Resource, Comparable<LoadableResource>
A loadable resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic LoadableResourcecreatePlaceholderReplacingLoadableResource(LoadableResource loadableResource, Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext) abstract Readerread()Reads the contents of this resource.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flywaydb.core.api.resource.Resource
getAbsolutePath, getAbsolutePathOnDisk, getFilename, getRelativePath
-
Constructor Details
-
LoadableResource
public LoadableResource()
-
-
Method Details
-
read
Reads the contents of this resource.- Returns:
- The reader with the contents of the resource.
-
shouldStream
public boolean shouldStream()- Returns:
- Whether it is recommended to stream this resource.
-
compareTo
- Specified by:
compareToin interfaceComparable<LoadableResource>
-
createPlaceholderReplacingLoadableResource
public static LoadableResource createPlaceholderReplacingLoadableResource(LoadableResource loadableResource, Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext)
-