@Immutable public abstract class FsDriver extends Object
Subclasses must be thread-safe and should be immutable!
Constructor and Description |
---|
FsDriver() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Returns a priority to help the file system driver service locator.
|
boolean |
isFederated()
Returns
true iff this file system driver implements a federated
file system type, i.e. |
abstract FsController<?> |
newController(FsModel model,
FsController<?> parent)
Returns a new thread-safe file system controller for the mount point of
the given file system model and parent file system controller.
|
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
public int getPriority()
0
, as by the implementation in the class
FsDriver
.public boolean isFederated()
true
iff this file system driver implements a federated
file system type, i.e. if the type of file system must be a member of a
parent file system.
The implementation in the class FsDriver
returns false
.
true
iff the type of the file system implemented by this
file system driver is federated, i.e. must be a member of a
parent file system.public abstract FsController<?> newController(FsModel model, @Nullable FsController<?> parent)
When called, you may safely assume the following precondition:
assert null == model.getParent()
? null == parent
: model.getParent().equals(parent.getModel())
model
- the file system model.parent
- the nullable parent file system controller.FsCompositeDriver.newController(de.schlichtherle.truezip.fs.FsModel, de.schlichtherle.truezip.fs.FsController<?>)
Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.