All Methods Instance Methods Concrete Methods Modifier and Type Method Description
describeLocations()Returns a description of the places this classloader will look for paths.
getAll(String path)Returns all
Resources at the given path.
search(String path, boolean recursive)Returns the path to all resources contained in the given path.
setContent(String fileName, String content)
Methods inherited from class liquibase.AbstractExtensibleObject
clone, describe, equals, get, get, get, getAttributes, getFieldValue, getObjectMetaData, getValuePath, has, hashCode, set, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
public List<Resource> getAll(String path) throws IOExceptionReturns all
Resources at the given path. For many resource accessors (such as a file system), only one resource can exist at a given spot, but some accessors (such as
ClassLoaderResourceAccessor) can have multiple resources for a single path.
If the resourceAccessor returns multiple values, the returned List should be considered sorted for that resource accessor. For example,
ClassLoaderResourceAccessorreturns them in order based on the configured classloader. Order is important to pay attention to, because users may set
GlobalConfiguration.DUPLICATE_FILE_MODEto pick the "best" file which is defined as "the first file from this function".
- null if no resources match the path
IOException- if there is an unexpected error determining what is at the path
public List<Resource> search(String path, boolean recursive) throws IOExceptionReturns the path to all resources contained in the given path. Multiple resources may be returned with the same path, but only if they are actually unique files. Order is important to pay attention to, they should be returned in a user-expected manner based on this resource accessor.
Should return an empty list if:
- Path does not exist
- Path is null
- Path is not a "directory"
- Path exists but cannot be read from
path- The path to lookup resources in.
recursive- Set to true and will return paths to contents in subdirectories as well.
- empty set if nothing was found
IOException- if there is an error searching the system.
describeLocationsReturns a description of the places this classloader will look for paths. Used in error messages and other troubleshooting cases.