TrueZIP Kernel 7.0-rc1

de.schlichtherle.truezip.fs
Interface FsCompositeDriver

All Known Implementing Classes:
FsDefaultDriver

public interface FsCompositeDriver

Queries the scheme of the given mount point in order to lookup the appropriate file system driver which is then used to create the requested thread-safe file system controller.

Author:
Christian Schlichtherle

Method Summary
 FsController<?> newController(FsMountPoint mountPoint, FsController<?> parent)
          Returns a new thread-safe file system controller for the given mount point and parent file system controller.
 

Method Detail

newController

@NonNull
FsController<?> newController(@NonNull
                                      FsMountPoint mountPoint,
                                      @Nullable
                                      FsController<?> parent)
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())

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.
Throws:
ServiceConfigurationError - if no appropriate file system driver is found for the scheme of the given mount point.

TrueZIP Kernel 7.0-rc1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.