newFSDirectory

fun newFSDirectory(clazzName: String, path: Path): FSDirectory

Creates a specific FSDirectory instance starting from its class name

Return

the new FSDirectory instance

Parameters

clazzName

The name of the FSDirectory class to load

path

The path to be used as parameter constructor

lf

The lock factory to be used


fun newFSDirectory(clazzName: String, path: Path, lf: LockFactory = FSLockFactory.default): FSDirectory

Creates a specific FSDirectory instance starting from its class name, using the default lock factory

Return

the new FSDirectory instance

Parameters

clazzName

The name of the FSDirectory class to load

path

The path to be used as parameter constructor


fun newFSDirectory(clazz: KClass<out FSDirectory>, path: Path, lf: LockFactory = FSLockFactory.default): FSDirectory

Creates a new specific FSDirectory instance

Return

The new FSDirectory instance

Parameters

clazz

The class of the object to be created

path

The file to be used as parameter constructor

Throws

NoSuchMethodException

If the Directory does not have a constructor that takes Path.

InstantiationException

If the class is abstract or an interface.

IllegalAccessException

If the constructor does not have public visibility.

InvocationTargetException

If the constructor throws an exception