hec.environment
Class StdPathnameFactory

java.lang.Object
  extended byhec.environment.StdPathnameFactory

public class StdPathnameFactory
extends java.lang.Object

Class to implement an OS-specific instance of StdPathnames.

See Also:
StdPathnames, WindowsStdPathnameImpl, UnixStdPathnameImpl

Field Summary
protected static boolean initialized
           
protected static StdPathnames instance
           
 
Constructor Summary
StdPathnameFactory()
           
 
Method Summary
static StdPathnames getInstance()
          Retrieves an implementation of StdPathnames for the current operating system.
protected static void initialize()
          Initializes the implementation instance for the current operating system.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static StdPathnames instance

initialized

protected static boolean initialized
Constructor Detail

StdPathnameFactory

public StdPathnameFactory()
Method Detail

initialize

protected static void initialize()
                          throws java.lang.Exception
Initializes the implementation instance for the current operating system.

Throws:
java.lang.Exception

getInstance

public static StdPathnames getInstance()
                                throws java.lang.Exception
Retrieves an implementation of StdPathnames for the current operating system.

Returns:
The implementation of StdPathnames for the current operating system. If there is no implementation for the current operating system, returns null.
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception