|
|||||||||
| 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<FSRWFileSystemBuilder>
org.entityfs.fs.FSRWFileSystemBuilder
public class FSRWFileSystemBuilder
This is a builder object for read/write, file-backed file systems.
By default, this builder creates a file system with a minimal set of features. Use the setter methods of this object to enable features.
FSROFileSystemBuilder| Field Summary |
|---|
| Fields inherited from interface org.entityfs.FileSystemBuilder |
|---|
DEFAULT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
FSRWFileSystemBuilder()
Create a builder with default settings: LogAdapter: DefaultLogAdapter.DEFAULT_ADAPTER
EntityValidityControlStrategy:
BackendCheckingValidityControlStrategy
|
|
| Method Summary | |
|---|---|
protected FileSystemImplementation |
createFileSystem(SupportObjects fso,
FileSystemDelegate fsd)
Subclasses implement this to return a new file system instance. |
protected FileSystemDelegate |
createFileSystemDelegate(FileSystemAdapter fsa)
This method is implemented by a subclass to create the file system delegate to use. |
boolean |
isLockingSupported()
Does the file system being built support locking? |
protected boolean |
isReadOnly()
Subclasses implement this method to tell if the file system they are about to create is read only. |
protected Collection<String> |
validate()
Override the inherited method to add more validation. |
| Methods inherited from class org.entityfs.fs.AbstractFSFileSystemBuilder |
|---|
createAdapterFactory, getRoot, setRoot |
| Methods inherited from class org.entityfs.impl.impl.AbstractFileSystemBuilderImpl |
|---|
create, createDefaultChildEntityManagerFactory, enableEvents, getChildEntityManagerFactory, getEventManager, isFileSystemSupportedByAllCapabilities, setChildEntityManagerFactory, setEventManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FSRWFileSystemBuilder()
LogAdapter: DefaultLogAdapter.DEFAULT_ADAPTEREntityValidityControlStrategy:
BackendCheckingValidityControlStrategy
| Method Detail |
|---|
protected FileSystemDelegate createFileSystemDelegate(FileSystemAdapter fsa)
AbstractFileSystemBuilderImpl
This method is called from AbstractFileSystemBuilderImpl.create().
createFileSystemDelegate in class AbstractFileSystemBuilderImpl<FSRWFileSystemBuilder>fsa - The file system adapter.
protected FileSystemImplementation createFileSystem(SupportObjects fso,
FileSystemDelegate fsd)
AbstractFileSystemBuilderImpl
This method is called from AbstractFileSystemBuilderImpl.create().
createFileSystem in class AbstractFileSystemBuilderImpl<FSRWFileSystemBuilder>fso - A collection of support objects.fsd - The file system delegate.
protected Collection<String> validate()
validate in class AbstractFSFileSystemBuilder<FSRWFileSystemBuilder>Collection of error messages. Can be empty but never
null.public boolean isLockingSupported()
FileSystemBuilder
isLockingSupported in interface FileSystemBuilder<FSRWFileSystemBuilder>true.FileSystemBuilder.enableLocking()protected boolean isReadOnly()
AbstractFileSystemBuilderImpl
This method is called from AbstractFileSystemBuilderImpl.create().
isReadOnly in class AbstractFileSystemBuilderImpl<FSRWFileSystemBuilder>false, always.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||