|
|||||||||
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 FileSystemDelegate
public void setOwner(FileSystemImplementation fs)
FileSystemDelegate
setOwner
in interface FileSystemDelegate
fs
- The file system object.public FileSystemImplementation getOwner()
FileSystemDelegate
getOwner
in interface FileSystemDelegate
public FileSystemAdapter getFileSystemAdapter()
FileSystemDelegate
getFileSystemAdapter
in interface FileSystemDelegate
public void validateEntityName(String name, EntityType et) throws IllegalArgumentException
FileSystemDelegate
validateEntityName
in interface FileSystemDelegate
name
- The entity name.et
- The entity type.
IllegalArgumentException
- If the entity name is invalid.public void close()
FileSystemDelegate
close
on either its proxied file system delegate or on the file system
adapter if it is not a proxy.
close
in interface FileSystemDelegate
public String toString()
ObjectProxySupport
toString
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 |