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(FsDriverProvider provider)
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,FsDriver> drivers
FsDefaultDriver
public FsDefaultDriver(@NonNull
FsDriverProvider provider)
- 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(FsModel model,
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 == model.getParent()
? null == parent
: model.getParent().equals(parent.getModel())
- Specified by:
newController in interface FsCompositeDriver
- Parameters:
model - the file system model.parent - the nullable 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.