com.partnersoft.system
Class AppManager

java.lang.Object
  extended by com.partnersoft.system.AppManager

public class AppManager
extends java.lang.Object

Tracks open applications, and manages their startup and shutdown processes.

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Method Summary
 App fetchApp(java.lang.String appName)
          Fetch and set up the named application.
 void popAppContext(java.lang.String contextName)
          This is also generally used by launcher tools.
 void popGUIAppContext(java.lang.String contextName)
          This is also generally used by launcher tools.
 void pushAppContext(java.lang.String contextName)
          This is generally only used by launcher tools.
 void pushGUIAppContext(java.lang.String contextName)
          This is generally only used by launcher tools.
 void runApp(App runme)
          Runs an app in the current thread.
 void runAppThreaded(App runme)
          Runs an app in a new thread.
static AppManager singleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

singleton

public static AppManager singleton()

runApp

public void runApp(App runme)
Runs an app in the current thread.


runAppThreaded

public void runAppThreaded(App runme)
Runs an app in a new thread.


fetchApp

public App fetchApp(java.lang.String appName)
             throws java.io.IOException
Fetch and set up the named application.

Throws:
java.io.IOException

pushAppContext

public void pushAppContext(java.lang.String contextName)
This is generally only used by launcher tools. It pushes an app context (without an actual app) onto the stack, primarily to prevent the system exiting when other apps are complete.


pushGUIAppContext

public void pushGUIAppContext(java.lang.String contextName)
This is generally only used by launcher tools. It pushes an app context (without an actual app) onto the stack, primarily to prevent the system exiting when other apps are complete.


popAppContext

public void popAppContext(java.lang.String contextName)
This is also generally used by launcher tools. It indicates that the launching context is complete and that the system can exit when all other applications are complete.


popGUIAppContext

public void popGUIAppContext(java.lang.String contextName)
This is also generally used by launcher tools. It indicates that the launching context is complete and that the system can exit when all other applications are complete.