@Immutable public abstract class FsDriver extends net.java.truecommons.shed.UniqueObject implements FsModel.Factory<FsManager>, FsController.Factory<FsManager>
Subclasses should be immutable.
FsCompositeDriver| Constructor and Description |
|---|
FsDriver() |
| Modifier and Type | Method and Description |
|---|---|
FsModel |
decorate(FsModel model)
Decorates the given file system model.
|
boolean |
isArchiveDriver()
Returns
true if and only if this is an archive driver, that is,
if file systems of this type must be a member of a parent file system. |
FsModel |
newModel(FsManager context,
FsMountPoint mountPoint,
FsModel parent)
Returns a new file system model for the given mount point.
|
java.lang.String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewControllerpublic boolean isArchiveDriver()
true if and only if this is an archive driver, that is,
if file systems of this type must be a member of a parent file system.FsDriver
unconditionally returns false.public final FsModel newModel(FsManager context, FsMountPoint mountPoint, FsModel parent)
When called, you may assert the following precondition:
assert null == parent
? null == mountPoint.getParent()
: parent.getMountPoint().equals(mountPoint.getParent());
The implementation in the class FsDriver forwards the call to
the given file system manager.
newModel in interface FsModel.Factory<FsManager>context - the calling context.mountPoint - the mount point of the file system.parent - the nullable parent file system model.public FsModel decorate(FsModel model)
model - the file system model to decorate.FsDriver
unconditionally returns model.public java.lang.String toString()
toString in class java.lang.Object