TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.fs
Class FsDefaultDriver

java.lang.Object
  extended by de.schlichtherle.truezip.fs.FsDefaultDriver
All Implemented Interfaces:
FsCompositeDriver

@Immutable
public final class FsDefaultDriver
extends Object
implements FsCompositeDriver

Uses a given file system driver service to lookup the appropriate driver for the scheme of a given mount point.

Author:
Christian Schlichtherle

Field Summary
private  Map<FsScheme,FsDriver> drivers
           
 
Constructor Summary
FsDefaultDriver(FsDriverProvider provider)
          Constructs a new file system default driver which will query the given file system driver service for an appropriate file system driver for the scheme of a given mount point.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

drivers

private final Map<FsScheme,FsDriver> drivers
Constructor Detail

FsDefaultDriver

public FsDefaultDriver(@NonNull
                       FsDriverProvider provider)
Constructs a new file system default driver which will query the given file system driver service for an appropriate file system driver for the scheme of a given mount point.

Method Detail

newController

public FsController<?> newController(FsModel model,
                                     FsController<?> parent)
Description copied from interface: FsCompositeDriver
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())

Specified by:
newController in interface FsCompositeDriver
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.

TrueZIP Kernel 7.0-rc2

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