com.sdm.quasar.client.showcase.jsf.application
Class ShowcaseApplication

java.lang.Object
  extended bycom.sdm.quasar.client.core.application.AbstractApplication
      extended bycom.sdm.quasar.client.jsf.application.AbstractJSFApplication
          extended bycom.sdm.quasar.client.showcase.jsf.application.ShowcaseApplication
All Implemented Interfaces:
Application, SystemInfoProvider

public class ShowcaseApplication
extends AbstractJSFApplication

This is the main application class of the Quasar JSF Showcase.

start() reads and sets up the configuration.

#generateDefaultData() adds some default data to an articlesList for the examples. This is not necessary in normal applications.

Author:
Erika Buchholz, sd&m AG

Constructor Summary
ShowcaseApplication()
           
 
Method Summary
protected  void initializeErrorHandler()
          Initializes the error handling.
 void start()
          This implementation initializes the additional application components in the following order: ErrorHandler by using initializeErrorHandler() LoggerFactory by using #initializeLogging()
 void stop()
          This implementation disposed the application components in the following order if the corresponding component implements Disposable.
 
Methods inherited from class com.sdm.quasar.client.jsf.application.AbstractJSFApplication
doSpecialWebErrorLogging, getApplicationConfiguration
 
Methods inherited from class com.sdm.quasar.client.core.application.AbstractApplication
collectSystemInfo, extendDestructionException, getApplicationID, getConfigManager, getServiceManager, getSessionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowcaseApplication

public ShowcaseApplication()
Method Detail

start

public void start()
Description copied from class: AbstractApplication
This implementation initializes the additional application components in the following order:
  1. ErrorHandler by using AbstractApplication.initializeErrorHandler()
  2. LoggerFactory by using #initializeLogging()

Specified by:
start in interface Application
Overrides:
start in class AbstractApplication

stop

public void stop()
          throws DisposeException
Description copied from class: AbstractApplication
This implementation disposed the application components in the following order if the corresponding component implements Disposable. Otherwise the component is skipped.

Specified by:
stop in interface Application
Overrides:
stop in class AbstractApplication
Throws:
DisposeException - if there is an exception while disposing the components
See Also:
for further information

initializeErrorHandler

protected void initializeErrorHandler()
Description copied from class: AbstractApplication
Initializes the error handling. This implementation registers a default ErrorHandlerAdapter with the ErrorHandler that calls Application.stop() to stop the application. The ErrorHandlerAdapter registered in this implementation does not attempt to restrict the error to a single dialog or session.

Depending on the client enviromnent you need to override this error handler to do something more useful.

Overrides:
initializeErrorHandler in class AbstractJSFApplication