public interface FSCapabilityMountClasspathType extends FSCapabilityCreateDirectoryType
The interface exposed by filesystem implementations that have the capability to load archives from the classpath.
| Modifier and Type | Method and Description |
|---|---|
void |
mountClasspathArchive(Class<?> c,
PathVirtual mount)
Mount the archive containing class
c at mount. |
createDirectoryvoid mountClasspathArchive(Class<?> c, PathVirtual mount) throws FilesystemError
Mount the archive containing class c at mount.
The path specified by mount is required to refer to an
existing directory.
If the directory at mount exists but was not explicitly
created with FSCapabilityCreateDirectoryType.createDirectory(PathVirtual), then the
mountArchive function first calls
FSCapabilityCreateDirectoryType.createDirectory(PathVirtual) to mark mount as
explicitly created, and then attempts to mount the archive as normal.
c - A class appearing in one of the archives on the classpath.mount - The mount point for the archive.FilesystemError - If a filesystem error occurs.Copyright © 2014 <code@io7m.com> http://io7m.com