public class StaticFactory extends BaseFactory
DirProperties.classIName
Constructor and Description |
---|
StaticFactory() |
Modifier and Type | Method and Description |
---|---|
static IName |
getCurrentName(ICS ics)
Instantiates an IName for the currently logged in user.
|
protected static IFactory |
instantiateFactory(ICS ics)
Looks up the factory classname to use from the property file and
instantiate it.
|
static IDir |
newDir(ICS ics)
Instantiates an IDir using the factory class specified in the
property file (DirProperties.classIFactory).
|
static IName |
newName(ICS ics,
String name)
Instantiates an IName using the factory class specified in the
property file (DirProperties.classIFactory).
|
static IUserDir |
newUserDir(ICS ics)
Instantiates an IUserDir using the factory class specified in the
property file (DirProperties.classIFactory).
|
static IUserDir |
newUserDir(ICS ics,
IDir iDir)
Instantiates an IUserDir using the factory class specified in the
property file (DirProperties.classIFactory).
|
instantiateImplementation
protected static IFactory instantiateFactory(ICS ics) throws DirectoryException
DirectoryException
public static IName getCurrentName(ICS ics) throws DirectoryException
ics
- The ICS instanceDirectoryException
public static IName newName(ICS ics, String name) throws DirectoryException
name
- The serialized form of the name to create.DirectoryException
public static IDir newDir(ICS ics) throws DirectoryException
DirectoryException
public static IUserDir newUserDir(ICS ics) throws DirectoryException
DirectoryException
public static IUserDir newUserDir(ICS ics, IDir iDir) throws DirectoryException
DirectoryException