org.entityfs.cap.symlink.ram.adapter
Class RamSymbolicLinkAdapterFactoryProxy

java.lang.Object
  extended by org.entityfs.support.lang.ObjectProxySupport<AdapterFactory>
      extended by org.entityfs.cap.symlink.ram.adapter.RamSymbolicLinkAdapterFactoryProxy
All Implemented Interfaces:
AdapterFactory

public class RamSymbolicLinkAdapterFactoryProxy
extends ObjectProxySupport<AdapterFactory>
implements AdapterFactory


Constructor Summary
RamSymbolicLinkAdapterFactoryProxy(AdapterFactory proxied)
           
 
Method Summary
 EntityAdapter createEntityAdapter(EntityType et, FileSystemAdapter fsa, DirectoryAdapter parent, String name, Object data, boolean existsInBackend)
          Create an entity adapter object.
 FileSystemAdapter createFileSystemAdapter(AdapterFactory af, LogAdapterHolder lah, int bufSize)
          Create a file system's FileSystemAdapter object.
 
Methods inherited from class org.entityfs.support.lang.ObjectProxySupport
equals, getProxied, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RamSymbolicLinkAdapterFactoryProxy

public RamSymbolicLinkAdapterFactoryProxy(AdapterFactory proxied)
Method Detail

createFileSystemAdapter

public FileSystemAdapter createFileSystemAdapter(AdapterFactory af,
                                                 LogAdapterHolder lah,
                                                 int bufSize)
Description copied from interface: AdapterFactory
Create a file system's FileSystemAdapter object.

Specified by:
createFileSystemAdapter in interface AdapterFactory
Parameters:
af - The file system's AdapterFactory. If capabilities have proxied the adapter factory, this instance may be different from the adapter factory receiving the call. If this method needs to create entity adapters, this instance should be used. That ensures that all capability providers get an opportunity to proxy the created adapters.
lah - The file system's LogAdapterHolder.
bufSize - The default size (in bytes) of temporary buffers that the file system might use.
Returns:
The file system's backend adapter.

createEntityAdapter

public EntityAdapter createEntityAdapter(EntityType et,
                                         FileSystemAdapter fsa,
                                         DirectoryAdapter parent,
                                         String name,
                                         Object data,
                                         boolean existsInBackend)
Description copied from interface: AdapterFactory
Create an entity adapter object. This method does not create the entity itself for new entities. That is done by the directory implementation calling EntityAdapter.create() after calling this method.

Specified by:
createEntityAdapter in interface AdapterFactory
Parameters:
et - The type of entity adapter to create.
fsa - The file system adapter.
parent - The adapter for the parent directory. This is set to null when creating the root directory.
name - The entity's name.
data - Extra data needed to create the entity. This may be null.
existsInBackend - Does the entity already exist in the backend? This is set to true when creating entity adapters for existing entities, false when creating entity adapters for new entities.
Returns:
An entity adapter object.