net.sf.jomic.common
Class StartupTools

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

public final class StartupTools
extends java.lang.Object

Utility methods used during the early startup. At that the time the following things are not available yet:

Author:
Thomas Aglassinger

Field Summary
static java.lang.String SPLASH_RESOURCE
          Image resource for the splash screen.
 
Method Summary
 void disposeSplashScreen(SplashScreen splashScreen)
          Dispose the splash screen in the event handling thread.
 java.io.File getSettingsDir()
          Get file where the settings are stored.
 java.io.File getSettingsFile(java.lang.String baseName)
          Get file where the settings are stored.
static StartupTools instance()
           
 void log(java.lang.String message, long time)
          Log message with a timestamp time to System.out.
 void logDuration(java.lang.String message)
          Log message to System.out and append the duration since startup.
 SplashScreen openSplashScreen()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPLASH_RESOURCE

public static final java.lang.String SPLASH_RESOURCE
Image resource for the splash screen.

See Also:
SplashScreen, Constant Field Values
Method Detail

getSettingsDir

public java.io.File getSettingsDir()
Get file where the settings are stored.


getSettingsFile

public java.io.File getSettingsFile(java.lang.String baseName)
Get file where the settings are stored.


instance

public static StartupTools instance()

disposeSplashScreen

public void disposeSplashScreen(SplashScreen splashScreen)
Dispose the splash screen in the event handling thread.


log

public void log(java.lang.String message,
                long time)
Log message with a timestamp time to System.out.


logDuration

public void logDuration(java.lang.String message)
Log message to System.out and append the duration since startup.


openSplashScreen

public SplashScreen openSplashScreen()