|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.support.lang.ObjectProxySupport<FileSystemDelegate>
org.entityfs.impl.AbstractFileSystemDelegateProxy
public abstract class AbstractFileSystemDelegateProxy
This is an abstract stub implementation of a file system delegate proxy. It forwards all method calls to the proxied delegate. This can be used as a starting point for custom implementations.
| Constructor Summary | |
|---|---|
protected |
AbstractFileSystemDelegateProxy(FileSystemDelegate proxied)
|
| Method Summary | |
|---|---|
void |
close()
Close the file system. |
FileSystemAdapter |
getFileSystemAdapter()
Get the adapter to the backend implementation. |
FileSystemImplementation |
getOwner()
Get the file system object that owns this delegate. |
void |
init()
This calls init on the proxied delegate. |
void |
setOwner(FileSystemImplementation fs)
This is called when the owning file system object has been created. |
String |
toString()
Delegate the call to toString to the proxied object. |
void |
validateEntityName(String name,
EntityType et)
Validate that the entity name is valid in this file system. |
| Methods inherited from class org.entityfs.support.lang.ObjectProxySupport |
|---|
equals, getProxied, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.entityfs.impl.FileSystemDelegate |
|---|
getCapabilityForEntityOrNull, getCapabilityOrNull, getSupportedCapabilities, getSupportedEntityCapabilities, supportsCapability, supportsCapabilityForEntity, supportsCapabilityForEntityType |
| Constructor Detail |
|---|
protected AbstractFileSystemDelegateProxy(FileSystemDelegate proxied)
| Method Detail |
|---|
public void init()
init on the proxied delegate. Be sure to call super.init() if this is overridden.
init in interface FileSystemDelegatepublic void setOwner(FileSystemImplementation fs)
FileSystemDelegate
setOwner in interface FileSystemDelegatefs - The file system object.public FileSystemImplementation getOwner()
FileSystemDelegate
getOwner in interface FileSystemDelegatepublic FileSystemAdapter getFileSystemAdapter()
FileSystemDelegate
getFileSystemAdapter in interface FileSystemDelegate
public void validateEntityName(String name,
EntityType et)
throws IllegalArgumentException
FileSystemDelegate
validateEntityName in interface FileSystemDelegatename - The entity name.et - The entity type.
IllegalArgumentException - If the entity name is invalid.public void close()
FileSystemDelegateclose on either its proxied file system delegate or on the file system
adapter if it is not a proxy.
close in interface FileSystemDelegatepublic String toString()
ObjectProxySupporttoString to the proxied object.
toString in class ObjectProxySupport<FileSystemDelegate>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||