org.crsh.vfs.spi.file
Class FileMountFactory

java.lang.Object
  extended by org.crsh.vfs.spi.file.FileMountFactory
All Implemented Interfaces:
FSMountFactory<File>

public class FileMountFactory
extends Object
implements FSMountFactory<File>

Author:
Julien Viet

Field Summary
private  File absoluteRoot
          .
private  File root
          .
 
Constructor Summary
FileMountFactory(File root)
           
 
Method Summary
 Mount<File> create(Path path)
          Resolve a mount for the specified path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

private final File root
.


absoluteRoot

private final File absoluteRoot
.

Constructor Detail

FileMountFactory

public FileMountFactory(File root)
                 throws IOException
Throws:
IOException
Method Detail

create

public Mount<File> create(Path path)
                   throws IOException
Description copied from interface: FSMountFactory
Resolve a mount for the specified path.

Specified by:
create in interface FSMountFactory<File>
Parameters:
path - the path
Returns:
the created mount object
Throws:
IOException - any io exception


Copyright © 2015 eXo Platform SAS. All Rights Reserved.