de.schlichtherle.truezip.fs
Class FsDefaultDriver
java.lang.Object
de.schlichtherle.truezip.fs.FsDefaultDriver
- All Implemented Interfaces:
- FsCompositeDriver
@Immutable
public final class FsDefaultDriver
- extends Object
- implements FsCompositeDriver
Uses a given file system driver service to lookup the appropriate driver
for the scheme of a given mount point.
- Author:
- Christian Schlichtherle
|
Constructor Summary |
FsDefaultDriver(FsDriverService service)
Constructs a new file system default driver which will query the given
file system driver service for an appropriate file system driver for the
scheme of a given mount point. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
drivers
private final Map<FsScheme,? extends FsDriver> drivers
FsDefaultDriver
public FsDefaultDriver(@NonNull
FsDriverService service)
- Constructs a new file system default driver which will query the given
file system driver service for an appropriate file system driver for the
scheme of a given mount point.
newController
public FsController<?> newController(FsMountPoint mountPoint,
FsController<?> parent)
- Description copied from interface:
FsCompositeDriver
- Returns a new thread-safe file system controller for the given mount
point and parent file system controller.
The file system controller is created by using a file system driver
which is looked up by querying the scheme of the given mount point.
When called, the following expression is a precondition:
null == mountPoint.getParent()
? null == parent
: mountPoint.getParent().equals(parent.getModel().getMountPoint())
- Specified by:
newController in interface FsCompositeDriver
- Parameters:
mountPoint - the mount point of the file system.parent - the parent file system controller.
- Returns:
- A new thread-safe file system controller for the given mount
point and parent file system controller.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.