net.charlesames.utility.launch
Class Launcher

java.lang.Object
  extended by net.charlesames.utility.launch.Launcher

public abstract class Launcher
extends java.lang.Object

Abstract class that launches a Windowed application. Concrete subclasses should be implemented as singletons.

Author:
Charles Ames

Method Summary
 java.lang.String getApplicationName()
          Get the application name.
 java.lang.String getInstallDir()
          Get the path to the application directory.
 boolean isMacOS()
          Test if the application is running under the Macintosh OS.
 void setApplicationName(java.lang.String applicationName)
          Set the application name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstallDir

public java.lang.String getInstallDir()
Get the path to the application directory.

Returns:
The path to the application directory.

getApplicationName

public java.lang.String getApplicationName()
Get the application name.

Returns:
The assigned application name.

setApplicationName

public void setApplicationName(java.lang.String applicationName)
Set the application name. The default application name is the unqualified application class name.

Parameters:
applicationName - The intended application name.

isMacOS

public boolean isMacOS()
Test if the application is running under the Macintosh OS.

Returns:
True if running under Macintosh OS; false otherwise.