Class BasicMountHandle
java.lang.Object
org.jboss.vfs.BasicMountHandle
- All Implemented Interfaces:
Closeable, AutoCloseable, MountHandle
MountHandle implementation. Provides the default behavior
of delegating to the FileSystem to get the mount source as
well as cleaning up resources.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Closeable[]private final FileSystemprivate final Closeable -
Constructor Summary
ConstructorsConstructorDescriptionBasicMountHandle(FileSystem fileSystem, Closeable mountHandle, Closeable... additionalCloseables) Create new DefaultMountHandle with a FileSystem and an array of closeable. -
Method Summary
-
Field Details
-
fileSystem
-
mountHandle
-
closeables
-
-
Constructor Details
-
BasicMountHandle
BasicMountHandle(FileSystem fileSystem, Closeable mountHandle, Closeable... additionalCloseables) Create new DefaultMountHandle with a FileSystem and an array of closeable.- Parameters:
fileSystem- to use to retrieve the mount sourcemountHandle- the handle to close the actual mountadditionalCloseables- addition Closeable to execute on close
-
-
Method Details
-
getMountSource
Description copied from interface:MountHandleGet the source file used for the mount.- Specified by:
getMountSourcein interfaceMountHandle- Returns:
- the source file
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-