View Javadoc
1   /*
2    * Copyright (C) 2005-2015 Schlichtherle IT Services.
3    * All rights reserved. Use is subject to license terms.
4    */
5   package net.java.truevfs.driver.file;
6   
7   import javax.annotation.CheckForNull;
8   import javax.annotation.concurrent.Immutable;
9   import net.java.truevfs.kernel.spec.*;
10  
11  /**
12   * A file system driver for the FILE scheme.
13   *
14   * @author Christian Schlichtherle
15   */
16  @Immutable
17  public final class FileDriver extends FsDriver {
18  
19      @Override
20      public FsController newController(
21              final FsManager manager,
22              final FsModel model,
23              final @CheckForNull FsController parent) {
24          assert null == parent;
25          assert null == model.getParent();
26          return new FileController(model);
27      }
28  }