Package liquibase.resource
Class DirectoryResourceAccessor
java.lang.Object
liquibase.AbstractExtensibleObject
liquibase.resource.AbstractResourceAccessor
liquibase.resource.AbstractPathResourceAccessor
liquibase.resource.DirectoryResourceAccessor
- All Implemented Interfaces:
AutoCloseable,Cloneable,ExtensibleObject,ResourceAccessor
A @{link ResourceAccessor} implementation for files on the file system.
Will look for files in zip and jar files if they are added as root paths.
-
Nested Class Summary
Nested classes/interfaces inherited from interface liquibase.resource.ResourceAccessor
ResourceAccessor.NotFoundResource, ResourceAccessor.SearchOptions -
Constructor Summary
ConstructorsConstructorDescriptionDirectoryResourceAccessor(File directory) Creates a FileSystemResourceAccessor with the given directory as the root.DirectoryResourceAccessor(Path directory) Creates a FileSystemResourceAccessor with the given directory as the root. -
Method Summary
Methods inherited from class liquibase.resource.AbstractPathResourceAccessor
describeLocations, getAll, search, search, toStringMethods inherited from class liquibase.AbstractExtensibleObject
clone, describe, equals, get, get, get, getAttributes, getFieldValue, getObjectMetaData, getValuePath, has, hashCode, setMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface liquibase.resource.ResourceAccessor
get, getExisting, handleDuplicateFileModeLogging, list, openStream, openStreams
-
Constructor Details
-
DirectoryResourceAccessor
Creates a FileSystemResourceAccessor with the given directory as the root.- Throws:
FileNotFoundException
-
DirectoryResourceAccessor
Creates a FileSystemResourceAccessor with the given directory as the root.- Throws:
FileNotFoundException
-
-
Method Details
-
close
- Throws:
Exception
-
getRootPath
- Specified by:
getRootPathin classAbstractPathResourceAccessor
-
createResource
- Specified by:
createResourcein classAbstractPathResourceAccessor
-