|
|||||||||
| 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<FSROFileSystemBuilder>
org.entityfs.fs.FSROFileSystemBuilder
public class FSROFileSystemBuilder
This is a builder object for read only, file-backed file systems.
FSRWFileSystemBuilder| Field Summary |
|---|
| Fields inherited from interface org.entityfs.FileSystemBuilder |
|---|
DEFAULT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
FSROFileSystemBuilder()
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 FSROFileSystemBuilder()
LogAdapter: DefaultLogAdapter.DEFAULT_ADAPTEREntityValidityControlStrategy:
BackendCheckingValidityControlStrategy
| Method Detail |
|---|
protected FileSystemDelegate createFileSystemDelegate(FileSystemAdapter fsa)
AbstractFileSystemBuilderImpl
This method is called from AbstractFileSystemBuilderImpl.create().
createFileSystemDelegate in class AbstractFileSystemBuilderImpl<FSROFileSystemBuilder>fsa - The file system adapter.
protected FileSystemImplementation createFileSystem(SupportObjects fso,
FileSystemDelegate fsd)
AbstractFileSystemBuilderImpl
This method is called from AbstractFileSystemBuilderImpl.create().
createFileSystem in class AbstractFileSystemBuilderImpl<FSROFileSystemBuilder>fso - A collection of support objects.fsd - The file system delegate.
protected Collection<String> validate()
validate in class AbstractFSFileSystemBuilder<FSROFileSystemBuilder>Collection of error messages. Can be empty but never
null.public boolean isLockingSupported()
FileSystemBuilder
isLockingSupported in interface FileSystemBuilder<FSROFileSystemBuilder>false.FileSystemBuilder.enableLocking()protected boolean isReadOnly()
AbstractFileSystemBuilderImpl
This method is called from AbstractFileSystemBuilderImpl.create().
isReadOnly in class AbstractFileSystemBuilderImpl<FSROFileSystemBuilder>true, always.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||