@Immutable public abstract class FsAbstractCompositeDriver extends Object implements FsCompositeDriver, FsDriverProvider
newController(de.schlichtherle.truezip.fs.FsManager, de.schlichtherle.truezip.fs.FsModel, de.schlichtherle.truezip.fs.FsController<? extends de.schlichtherle.truezip.fs.FsModel>)
which uses
the file system driver map returned by FsDriverProvider.get()
to lookup the
appropriate driver for the scheme of any given mount point.Constructor and Description |
---|
FsAbstractCompositeDriver() |
Modifier and Type | Method and Description |
---|---|
FsController<? extends FsModel> |
newController(FsManager manager,
FsModel model,
FsController<? extends FsModel> parent)
Returns a new thread-safe file system controller for the mount point of
the given file system model and nullable parent file system controller.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public final FsController<? extends FsModel> newController(FsManager manager, FsModel model, FsController<? extends FsModel> parent)
FsCompositeDriver
file system driver
which gets looked up by querying the
scheme of the mount point of the given file system model with the
expression model.getMountPoint().getScheme()
.
When called, you may assert the following precondition:
assert null == parent
? null == model.getParent()
: parent.getModel().equals(model.getParent())
newController
in interface FsCompositeDriver
manager
- the file system manager for the new controller.model
- the file system model.parent
- the nullable parent file system controller.FsDriver.newController(de.schlichtherle.truezip.fs.FsManager, de.schlichtherle.truezip.fs.FsModel, de.schlichtherle.truezip.fs.FsController<? extends de.schlichtherle.truezip.fs.FsModel>)
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.