com.sdm.quasar.client.jsf.application
Class AbstractJSFApplication

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

public abstract class AbstractJSFApplication
extends AbstractApplication

Base class for an JSF Application. Note that JSF uses a delegate concept to tie this business application with the javax.faces.application.Application from JSF.

Version:
1.0
Author:
Bernd Olleck, sd&m AG

Constructor Summary
AbstractJSFApplication(ID applicationId)
          Constructor, implementation passes parameter on to AbstractApplication.
 
Method Summary
protected  void doSpecialWebErrorLogging(int loggingLevel, java.lang.String mesage, java.lang.Throwable e)
          Logging of Throwables with special handling of ServletExceptions
protected  ApplicationConfiguration getApplicationConfiguration()
          Returns the ApplicationConfiguration instance used to configure this application instance.
protected  void initializeErrorHandler()
          Initializes the error handling.
 
Methods inherited from class com.sdm.quasar.client.core.application.AbstractApplication
collectSystemInfo, extendDestructionException, getApplicationID, getConfigManager, getServiceManager, getSessionManager, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJSFApplication

public AbstractJSFApplication(ID applicationId)
Constructor, implementation passes parameter on to AbstractApplication.

Parameters:
applicationId - the id of the application
Method Detail

getApplicationConfiguration

protected ApplicationConfiguration getApplicationConfiguration()
Description copied from class: AbstractApplication
Returns the ApplicationConfiguration instance used to configure this application instance.

Overrides:
getApplicationConfiguration in class AbstractApplication
See Also:
AbstractApplication.getApplicationConfiguration()

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 AbstractApplication

doSpecialWebErrorLogging

protected void doSpecialWebErrorLogging(int loggingLevel,
                                        java.lang.String mesage,
                                        java.lang.Throwable e)
Logging of Throwables with special handling of ServletExceptions