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
ConstructorDescriptionDirectoryResourceAccessor
(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, toString
Methods inherited from class liquibase.AbstractExtensibleObject
clone, describe, equals, get, get, get, getAttributes, getFieldValue, getObjectMetaData, getValuePath, has, hashCode, set
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getRootPath
in classAbstractPathResourceAccessor
-
createResource
- Specified by:
createResource
in classAbstractPathResourceAccessor
-