TrueZIP Kernel 7.0-rc1

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,? extends FsDriver> drivers
           
 
Constructor Summary
FsDefaultDriver(FsDriverService service)
          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(FsMountPoint mountPoint, 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,? extends FsDriver> drivers
Constructor Detail

FsDefaultDriver

public FsDefaultDriver(@NonNull
                       FsDriverService service)
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(FsMountPoint mountPoint,
                                     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 == mountPoint.getParent() ? null == parent : mountPoint.getParent().equals(parent.getModel().getMountPoint())

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

TrueZIP Kernel 7.0-rc1

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