org.crsh.vfs
Class FS.Builder

java.lang.Object
  extended by org.crsh.vfs.FS.Builder
Enclosing class:
FS

public static class FS.Builder
extends Object


Field Summary
private  ArrayList<Mount<?>> mounts
          .
private  HashMap<String,FSMountFactory<?>> resolvers
          .
 
Constructor Summary
FS.Builder()
           
 
Method Summary
 FS build()
           
 List<Mount<?>> getMounts()
           
 FS.Builder mount(String mountPointConfig)
           
 FS.Builder mount(String name, Path path)
           
 FS.Builder register(String name, FSMountFactory<?> resolver)
          Register a resolver.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resolvers

private HashMap<String,FSMountFactory<?>> resolvers
.


mounts

private ArrayList<Mount<?>> mounts
.

Constructor Detail

FS.Builder

public FS.Builder()
Method Detail

register

public FS.Builder register(String name,
                           FSMountFactory<?> resolver)
Register a resolver.

Parameters:
name - the registration name
resolver - the resolver implementation

mount

public FS.Builder mount(String name,
                        Path path)
                 throws IOException,
                        IllegalArgumentException
Throws:
IOException
IllegalArgumentException

mount

public FS.Builder mount(String mountPointConfig)
                 throws IOException
Throws:
IOException

getMounts

public List<Mount<?>> getMounts()

build

public FS build()
         throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 eXo Platform SAS. All Rights Reserved.