Interface VfsComponent
- All Superinterfaces:
AutoCloseable, Closeable
- All Known Implementing Classes:
AbstractFileProvider, AbstractFilesCache, AbstractFileSystem, AbstractLayeredFileProvider, AbstractOriginatingFileProvider, AbstractVfsComponent, AbstractVfsContainer, Bzip2FileProvider, Bzip2FileSystem, CompositeFileProvider, CompressedFileFileProvider, CompressedFileFileSystem, DefaultFileReplicator, DefaultFilesCache, DefaultLocalFileProvider, FtpFileProvider, FtpFileSystem, GzipFileProvider, GzipFileSystem, Http4FileProvider, Http4FileSystem, Http4sFileProvider, HttpFileProvider, HttpFileSystem, HttpsFileProvider, JarFileProvider, JarFileSystem, LocalFileSystem, LRUFilesCache, NullFilesCache, PrivilegedFileReplicator, RamFileProvider, RamFileSystem, ResourceFileProvider, SftpFileProvider, SftpFileSystem, SoftRefFilesCache, TarFileProvider, TarFileSystem, Tbz2FileProvider, TemporaryFileProvider, TgzFileProvider, UrlFileProvider, UrlFileSystem, VirtualFileProvider, VirtualFileSystem, WeakRefFilesCache, ZipFileProvider, ZipFileSystem
This interface is used to manage the lifecycle of all VFS components. This includes all implementations of the
following interfaces:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the component.voidinit()Initializes the component.voidsetContext(VfsComponentContext context) Sets the context for the component.voidsetLogger(org.apache.commons.logging.Log logger) Sets the Logger to use for the component.
-
Method Details
-
close
void close()Closes the component.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
init
Initializes the component.- Throws:
FileSystemException- if an error occurs.
-
setContext
Sets the context for the component.- Parameters:
context- The context.
-
setLogger
Sets the Logger to use for the component.- Parameters:
logger- The Log
-