net.sf.jomic.common
Class JomicStartup

java.lang.Object
  extended by net.sf.jomic.common.JomicStartup

public final class JomicStartup
extends java.lang.Object

Utility class to bootstrap Jomic without refering to package net.sf.jomic.tools (apart from StartupTools and ErrorTools) and Settings.

Author:
Thomas Aglassinger

Method Summary
 void exit(int exitCode)
          Call System.exit(exitCode) unless the system property TEST_IGNORE_EXIT is true.
static JomicStartup instance()
           
 boolean isStartup()
           
 void showError(java.lang.String message, java.lang.Throwable error)
          Show error message in dialog.
 void showError(java.lang.String message, java.lang.Throwable error, boolean modal)
          Show error message in dialog.
 void startup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isStartup

public boolean isStartup()

instance

public static JomicStartup instance()

exit

public void exit(int exitCode)
Call System.exit(exitCode) unless the system property TEST_IGNORE_EXIT is true.

See Also:
System.exit(int), PropertyConstants.TEST_IGNORE_EXIT

showError

public void showError(java.lang.String message,
                      java.lang.Throwable error)
Show error message in dialog. Unlike JomicTools.showError() this method does not require any initialization. It should only be used in situations where we cannot be sure that LocaleTools and other stuff is up and running.

See Also:
JomicTools.showError(javax.swing.JFrame, String, Object[], Throwable)

showError

public void showError(java.lang.String message,
                      java.lang.Throwable error,
                      boolean modal)
Show error message in dialog. Unlike JomicTools.showError() this method does not require any initialization. It should only be used in situations where we cannot be sure that LocaleTools and other stuff is up and running.

See Also:
JomicTools.showError(javax.swing.JFrame, String, Object, Throwable)

startup

public void startup()
             throws java.io.IOException
Throws:
java.io.IOException