org.viewaframework.core
Class DefaultApplicationLauncher

java.lang.Object
  extended by javax.swing.SwingWorker<Application,SplashStatus>
      extended by org.viewaframework.core.AbstractApplicationLauncher
          extended by org.viewaframework.core.DefaultApplicationLauncher
All Implemented Interfaces:
Runnable, Future<Application>, RunnableFuture<Application>, ApplicationLauncher

public class DefaultApplicationLauncher
extends AbstractApplicationLauncher

This is the launcher of the Application. It launches the application lifecycle in a new Thread.

Since:
1.0
Author:
Mario Garcia

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
 
Field Summary
 
Fields inherited from interface org.viewaframework.core.ApplicationLauncher
APPLICATION_BUNDLE_NAME, APPLICATION_LOCALE, APPLICATION_NAME, APPLICATION_SPLASH, APPLICATION_VERSION, LOCALE_SEPARATOR, SPLASH_KEY_MESSAGE_OPENING, SPLASH_KEY_MESSAGE_PREPARE, SPLASH_KEY_MESSAGE_PREPAREUI, SPLASH_KEY_MESSAGE_STARTING, SPLASH_KEY_VALUE_DEFAULT_PROGRESS_COLOR, SPLASH_KEY_VALUE_DEFAULT_TEXT_COLOR, SPLASH_KEY_VALUE_DEFAULT_TEXT_SIZE, SPLASH_KEY_VALUE_PROGRESS_COLOR, SPLASH_KEY_VALUE_TEXT_COLOR, SPLASH_KEY_VALUE_TEXT_SIZE, SPLASH_VALUE_DEFAULT_PROGRESS_COLOR, SPLASH_VALUE_DEFAULT_TEXT_COLOR, SPLASH_VALUE_DEFAULT_TEXT_SIZE, VIEWA_FILE_NAME
 
Constructor Summary
DefaultApplicationLauncher()
           
 
Method Summary
 Application execute(Class<? extends Application> app)
           
 Application getApplication()
           
 
Methods inherited from class org.viewaframework.core.AbstractApplicationLauncher
doInBackground, done, getLookAndFeel, process, renderSplashFrame
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultApplicationLauncher

public DefaultApplicationLauncher()
Method Detail

execute

public Application execute(Class<? extends Application> app)
                    throws Exception
Specified by:
execute in interface ApplicationLauncher
Overrides:
execute in class AbstractApplicationLauncher
Throws:
Exception

getApplication

public Application getApplication()
Specified by:
getApplication in class AbstractApplicationLauncher
Returns:


Copyright © 2010. All Rights Reserved.