com.partnersoft.system
Class AppLib

java.lang.Object
  extended by com.partnersoft.system.AppLib
All Implemented Interfaces:
Lib

public class AppLib
extends java.lang.Object
implements Lib

Convenience methods to manage Partner apps.

Copyright 2004-2007 Partner Software, Inc.

Version:
$Id: AppLib.java 1122 2008-01-22 20:56:12Z paul $
Author:
Paul Reavis

Method Summary
static void runApp(java.lang.String appName)
          Start the named app in the current thread.
static void runAppAndThrowException(java.lang.String appName)
          Start the named app in the current thread.
static void runAppThreaded(java.lang.String appName)
          Start the named app in a new thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

runApp

public static void runApp(java.lang.String appName)
Start the named app in the current thread. Catches and logs all Throwables. Returns when the app is done.

Parameters:
appName - name of the app to run

runAppAndThrowException

public static void runAppAndThrowException(java.lang.String appName)
                                    throws java.lang.Throwable
Start the named app in the current thread. Throws any Throwables; this is useful if e.g. you're running a list of apps in some other script and want processing to halt if any of them break.

Parameters:
appName - name of the app to run
Throws:
java.lang.Throwable

runAppThreaded

public static void runAppThreaded(java.lang.String appName)
Start the named app in a new thread. Catches and logs all Throwables. Returns immediately.

Parameters:
appName - name of the app to run