com.partnersoft.v3x.util
Class App

java.lang.Object
  extended by com.partnersoft.v3x.util.App
Direct Known Subclasses:
KeyGenerator, LicenseGenerator, MapApp, MapControlCtron, PropagationTroubleshooting, SimpleTOFEditor

public abstract class App
extends java.lang.Object

Generic framework for a Partner application.


Constructor Summary
App()
           
 
Method Summary
 void die()
           
 void die(java.lang.Exception oopsie)
           
 void exit()
           
abstract  void initializeImp(PropMap args)
           
 void launch(java.lang.String[] argv)
           
static void runApp(AppConfiguration configuration)
          Tries to run the given app.
abstract  void runImp()
           
static void setupApp(AppConfiguration configuration)
          Tries to launch a named app.
static void setupAppLogging(AppConfiguration configuration)
          Just sets up the logging for an app.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

App

public App()
Method Detail

setupApp

public static void setupApp(AppConfiguration configuration)
Tries to launch a named app. If the class isn't an app, returns false. Alters configuration to set appObject. RDC: Note that this no longer sets up logging, instead call setupAppLogging(). The logging setup was taken out so we could setup logging, throw open the splash screen, and then initialize the app. Some initialization, namely the TrimbleDaemon, happens before the splash screen goes up but requires logging, hence the split. As far as I can tell, setupApp() is only called from AppLauncher.launchApp().


setupAppLogging

public static void setupAppLogging(AppConfiguration configuration)
Just sets up the logging for an app. Copied from setupApp(). SetupApp() no longer sets up the log.


runApp

public static void runApp(AppConfiguration configuration)
Tries to run the given app.


runImp

public abstract void runImp()
                     throws java.lang.Exception
Throws:
java.lang.Exception

initializeImp

public abstract void initializeImp(PropMap args)
                            throws java.lang.Exception
Throws:
java.lang.Exception

launch

public void launch(java.lang.String[] argv)

exit

public void exit()

die

public void die(java.lang.Exception oopsie)

die

public void die()