|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.impl.AbstractFileSystemBuilder<T>
org.entityfs.impl.impl.AbstractFileSystemBuilderImpl<T>
org.entityfs.fs.AbstractFSFileSystemBuilder<T>
T
- The concrete implementation, returned from various getter methods.public abstract class AbstractFSFileSystemBuilder<T extends AbstractFSFileSystemBuilder<T>>
Abstract base class for file-backed file system builders.
Field Summary |
---|
Fields inherited from interface org.entityfs.FileSystemBuilder |
---|
DEFAULT_BUFFER_SIZE |
Constructor Summary | |
---|---|
protected |
AbstractFSFileSystemBuilder()
|
Method Summary | |
---|---|
protected AdapterFactory |
createAdapterFactory()
Subclasses implement this to create the right AdapterFactory
implementation. |
File |
getRoot()
Get the root directory of the file system to create. |
T |
setRoot(File root)
Set the root of the file system. |
protected Collection<String> |
validate()
Override the inherited method to add more validation. |
Methods inherited from class org.entityfs.impl.impl.AbstractFileSystemBuilderImpl |
---|
create, createDefaultChildEntityManagerFactory, createFileSystem, createFileSystemDelegate, enableEvents, getChildEntityManagerFactory, getEventManager, isFileSystemSupportedByAllCapabilities, isReadOnly, setChildEntityManagerFactory, setEventManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractFSFileSystemBuilder()
Method Detail |
---|
protected AdapterFactory createAdapterFactory()
AbstractFileSystemBuilderImpl
AdapterFactory
implementation.
This method is called from AbstractFileSystemBuilderImpl.create()
.
createAdapterFactory
in class AbstractFileSystemBuilderImpl<T extends AbstractFSFileSystemBuilder<T>>
AdapterFactory
implementation.public T setRoot(File root)
File
object must represent a
directory.
This property must be set.
setRoot
in interface FSFileSystemBuilder<T extends AbstractFSFileSystemBuilder<T>>
root
- The root directory.
public File getRoot()
getRoot
in interface FSFileSystemBuilder<T extends AbstractFSFileSystemBuilder<T>>
protected Collection<String> validate()
validate
in class AbstractFileSystemBuilder<T extends AbstractFSFileSystemBuilder<T>>
Collection
of error messages. Can be empty but never
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |