com.japisoft.framework
Class ApplicationMain

java.lang.Object
  extended bycom.japisoft.framework.ApplicationMain

public class ApplicationMain
extends java.lang.Object

This is the beginning part for starting an application. The user must call the start method. This operation will use a set of application step for building the application. The user must have at least one application step for starting the application

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com

Constructor Summary
ApplicationMain()
           
 
Method Summary
static void showException(java.lang.Throwable th)
          Show a dialog box with the following error
static void start(java.lang.String[] args)
          Start the application without application descriptor file.
static void start(java.lang.String applicationDescriptorFile, java.lang.String[] args)
          Start the application using the following application descriptor file
static void stop(int exitCode)
          Should be called when terminating the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationMain

public ApplicationMain()
Method Detail

start

public static void start(java.lang.String applicationDescriptorFile,
                         java.lang.String[] args)
                  throws ApplicationException
Start the application using the following application descriptor file

Parameters:
applicationDescriptorFile - A path using the classpath for the application descriptor file
args - The application main parameters
Throws:
ApplicationException - when cannot find the application descriptor file

start

public static void start(java.lang.String[] args)
                  throws ApplicationException
Start the application without application descriptor file. The user must update each correct field from the application model before calling it

Parameters:
args - The application main parameters
Throws:
ApplicationException

stop

public static void stop(int exitCode)
Should be called when terminating the application. This method will call the exit method


showException

public static void showException(java.lang.Throwable th)
Show a dialog box with the following error

Parameters:
th - An exception while starting the application