org.entityfs.cap.entityattrs.impl.metadata
Class AbstractEntityAttributesEnablingFileSystemDelegate<T extends EntityAttributes>

java.lang.Object
  extended by org.entityfs.support.lang.ObjectProxySupport<FileSystemDelegate>
      extended by org.entityfs.impl.AbstractFileSystemDelegateProxy
          extended by org.entityfs.cap.entityattrs.impl.metadata.AbstractEntityAttributesEnablingFileSystemDelegate<T>
All Implemented Interfaces:
FileSystemDelegate
Direct Known Subclasses:
NtfsEntityAttributesFileSystemDelegate, UnixEntityAttributesFileSystemDelegate

public abstract class AbstractEntityAttributesEnablingFileSystemDelegate<T extends EntityAttributes>
extends AbstractFileSystemDelegateProxy


Constructor Summary
AbstractEntityAttributesEnablingFileSystemDelegate(FileSystemDelegate proxied, Class<T> attrType, String afn, ChildEntityAttributeManagerFactory<T,? extends ChildEntityAttributeManager<T>> ceamf, Map<EntityType,ObjectFactory<T>> deaf, EntityAttributesPreparer<T> eap, boolean storeLazily)
           
 
Method Summary
 String getAttributesFileName()
          Get the name of the entity attributes metadata file.
 Class<T> getAttributesType()
           
 ChildEntityAttributeManagerFactory<T,? extends ChildEntityAttributeManager<T>> getChildEntityAttributeManagerFactory()
           
 ObjectFactory<T> getDefaultEntityAttributesFactory(EntityType et)
           
 EntityAttributesPreparer<T> getEntityAttributesPreparer()
          Get the file system's EntityAttributesPreparer, if set.
 boolean isStoreAttributesLazily()
           
 
Methods inherited from class org.entityfs.impl.AbstractFileSystemDelegateProxy
close, getFileSystemAdapter, getOwner, init, setOwner, toString, validateEntityName
 
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

AbstractEntityAttributesEnablingFileSystemDelegate

public AbstractEntityAttributesEnablingFileSystemDelegate(FileSystemDelegate proxied,
                                                          Class<T> attrType,
                                                          String afn,
                                                          ChildEntityAttributeManagerFactory<T,? extends ChildEntityAttributeManager<T>> ceamf,
                                                          Map<EntityType,ObjectFactory<T>> deaf,
                                                          EntityAttributesPreparer<T> eap,
                                                          boolean storeLazily)
Parameters:
afn - The name of the entity attributes metadata file.
eap - An optional object that is used to prepare the entity attributes of a newly created entity. May be null.
Method Detail

getChildEntityAttributeManagerFactory

public ChildEntityAttributeManagerFactory<T,? extends ChildEntityAttributeManager<T>> getChildEntityAttributeManagerFactory()

getAttributesFileName

public String getAttributesFileName()
Get the name of the entity attributes metadata file.

Returns:
The name of the entity attributes metadata file.

getEntityAttributesPreparer

public EntityAttributesPreparer<T> getEntityAttributesPreparer()
Get the file system's EntityAttributesPreparer, if set.

Returns:
The file system's EntityAttributesPreparer, or null if it is not set.

isStoreAttributesLazily

public boolean isStoreAttributesLazily()

getAttributesType

public Class<T> getAttributesType()
Returns:
The type of attributes handled by this delegate.

getDefaultEntityAttributesFactory

public ObjectFactory<T> getDefaultEntityAttributesFactory(EntityType et)