Package org.jboss.vfs

Class BasicMountHandle

java.lang.Object
org.jboss.vfs.BasicMountHandle
All Implemented Interfaces:
Closeable, AutoCloseable, MountHandle

class BasicMountHandle extends Object implements MountHandle
MountHandle implementation. Provides the default behavior of delegating to the FileSystem to get the mount source as well as cleaning up resources.
  • Field Details

    • fileSystem

      private final FileSystem fileSystem
    • mountHandle

      private final Closeable mountHandle
    • closeables

      private final Closeable[] 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 source
      mountHandle - the handle to close the actual mount
      additionalCloseables - addition Closeable to execute on close
  • Method Details