jaugment2.directory
Class FileObjectFactory

java.lang.Object
  |
  +--jaugment2.directory.FileObjectFactory

public class FileObjectFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory

An ObjectFactory, returning a name-value-set with the content and some other attributes (size, last-accessed-time,...) for a file and special handling for some files (storing references or even the (java-)code to contexts in files,...)


Inner Class Summary
static interface FileObjectFactory.FileAttributesFactory
           
(package private) static interface FileObjectFactory.MyDeferedRemoteAttributesIF
          helper-interface
private  class FileObjectFactory.MyDeferedSerializableAttributes
          helper-class deferring the loading of all file-attributes until they are really needed
static class FileObjectFactory.RemoteFileDataSource
           
 
Field Summary
(package private)  FileObjectFactory.FileAttributesFactory[] attributesFactories
           
private static boolean debug
           
 
Constructor Summary
FileObjectFactory()
           
 
Method Summary
 java.lang.Object createStoredDirectory(java.lang.String text)
           
 java.lang.Object getObjectInstance(java.lang.Object o, javax.naming.Name p1, javax.naming.Context p2, java.util.Hashtable p3)
           
static java.lang.String parseMacros(java.lang.String in)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

debug

private static final boolean debug

attributesFactories

FileObjectFactory.FileAttributesFactory[] attributesFactories
Constructor Detail

FileObjectFactory

public FileObjectFactory()
Method Detail

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object o,
                                          javax.naming.Name p1,
                                          javax.naming.Context p2,
                                          java.util.Hashtable p3)
                                   throws java.lang.Exception
Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory

parseMacros

public static java.lang.String parseMacros(java.lang.String in)

createStoredDirectory

public java.lang.Object createStoredDirectory(java.lang.String text)