TrueZIP Kernel 7.0-rc2

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(FsModel model, 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
                                      FsModel model,
                                      @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 == model.getParent() ? null == parent : model.getParent().equals(parent.getModel())

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

TrueZIP Kernel 7.0-rc2

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