Package org.jboss.vfs
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 FileSystem
private 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:MountHandle
Get the source file used for the mount.- Specified by:
getMountSource
in interfaceMountHandle
- Returns:
- the source file
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-