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

java.lang.Object
  extended byApplication
      extended bycom.sdm.quasar.client.jsf.application.QuasarCompositeApplication
All Implemented Interfaces:
Application

public class QuasarCompositeApplication
extends Application
implements Application

Class that is used as JSF application. It implements all JSF application tasks by using a delegate concept, which passes all standard work to the JSF application. Additionally the class implements the Quasar Application interface which allows to start and stop the application, etc.

Author:
Carsten Lucke , sd&m AG
See Also:
Serialized Form

Constructor Summary
QuasarCompositeApplication(Application jsfApplication, Application quasarApplication)
          Constructor that hands in the default JSF application instance.
 
Method Summary
 void addComponent(java.lang.String arg0, java.lang.String arg1)
           
 void addConverter(java.lang.Class arg0, java.lang.String arg1)
           
 void addConverter(java.lang.String arg0, java.lang.String arg1)
           
 void addValidator(java.lang.String arg0, java.lang.String arg1)
           
 UIComponent createComponent(java.lang.String arg0)
           
 UIComponent createComponent(ValueBinding arg0, FacesContext arg1, java.lang.String arg2)
           
 Converter createConverter(java.lang.Class arg0)
           
 Converter createConverter(java.lang.String arg0)
           
 MethodBinding createMethodBinding(java.lang.String arg0, java.lang.Class[] arg1)
           
 Validator createValidator(java.lang.String arg0)
           
 ValueBinding createValueBinding(java.lang.String arg0)
           
 ActionListener getActionListener()
           
 ID getApplicationID()
          Returns the application ID.
 java.util.Iterator getComponentTypes()
           
 ConfigManager getConfigManager()
          Returns the ConfigManager of the application scope.
 java.util.Iterator getConverterIds()
           
 java.util.Iterator getConverterTypes()
           
 java.util.Locale getDefaultLocale()
           
 java.lang.String getDefaultRenderKitId()
           
 java.lang.String getMessageBundle()
           
 NavigationHandler getNavigationHandler()
           
 PropertyResolver getPropertyResolver()
           
 ServiceManager getServiceManager()
          Returns the object that implements the ServiceManager interface.
 SessionManager getSessionManager()
          Returns the SessionManager of the application scope.
 StateManager getStateManager()
           
 java.util.Iterator getSupportedLocales()
           
 java.util.Iterator getValidatorIds()
           
 VariableResolver getVariableResolver()
           
 ViewHandler getViewHandler()
           
 void setActionListener(ActionListener arg0)
           
 void setDefaultLocale(java.util.Locale arg0)
           
 void setDefaultRenderKitId(java.lang.String arg0)
           
 void setMessageBundle(java.lang.String arg0)
           
 void setNavigationHandler(NavigationHandler arg0)
           
 void setPropertyResolver(PropertyResolver arg0)
           
 void setStateManager(StateManager arg0)
           
 void setSupportedLocales(java.util.Collection arg0)
           
 void setVariableResolver(VariableResolver arg0)
           
 void setViewHandler(ViewHandler arg0)
           
 void start()
          Realizes application startup.
 void stop()
          Realizes application shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuasarCompositeApplication

public QuasarCompositeApplication(Application jsfApplication,
                                  Application quasarApplication)
Constructor that hands in the default JSF application instance.

Parameters:
jsfApplication - the default JSF application instance
quasarApplication - the quasar application instance
Method Detail

addComponent

public void addComponent(java.lang.String arg0,
                         java.lang.String arg1)

addConverter

public void addConverter(java.lang.String arg0,
                         java.lang.String arg1)

addConverter

public void addConverter(java.lang.Class arg0,
                         java.lang.String arg1)

addValidator

public void addValidator(java.lang.String arg0,
                         java.lang.String arg1)

createComponent

public UIComponent createComponent(java.lang.String arg0)
                            throws FacesException
Throws:
FacesException

createComponent

public UIComponent createComponent(ValueBinding arg0,
                                   FacesContext arg1,
                                   java.lang.String arg2)
                            throws FacesException
Throws:
FacesException

createConverter

public Converter createConverter(java.lang.String arg0)

createConverter

public Converter createConverter(java.lang.Class arg0)

createMethodBinding

public MethodBinding createMethodBinding(java.lang.String arg0,
                                         java.lang.Class[] arg1)
                                  throws ReferenceSyntaxException
Throws:
ReferenceSyntaxException

createValidator

public Validator createValidator(java.lang.String arg0)
                          throws FacesException
Throws:
FacesException

createValueBinding

public ValueBinding createValueBinding(java.lang.String arg0)
                                throws ReferenceSyntaxException
Throws:
ReferenceSyntaxException

getActionListener

public ActionListener getActionListener()

getComponentTypes

public java.util.Iterator getComponentTypes()

getConverterIds

public java.util.Iterator getConverterIds()

getConverterTypes

public java.util.Iterator getConverterTypes()

getDefaultLocale

public java.util.Locale getDefaultLocale()

getDefaultRenderKitId

public java.lang.String getDefaultRenderKitId()

getMessageBundle

public java.lang.String getMessageBundle()

getNavigationHandler

public NavigationHandler getNavigationHandler()

getPropertyResolver

public PropertyResolver getPropertyResolver()

getStateManager

public StateManager getStateManager()

getSupportedLocales

public java.util.Iterator getSupportedLocales()

getValidatorIds

public java.util.Iterator getValidatorIds()

getVariableResolver

public VariableResolver getVariableResolver()

getViewHandler

public ViewHandler getViewHandler()

setActionListener

public void setActionListener(ActionListener arg0)

setDefaultLocale

public void setDefaultLocale(java.util.Locale arg0)

setDefaultRenderKitId

public void setDefaultRenderKitId(java.lang.String arg0)

setMessageBundle

public void setMessageBundle(java.lang.String arg0)

setNavigationHandler

public void setNavigationHandler(NavigationHandler arg0)

setPropertyResolver

public void setPropertyResolver(PropertyResolver arg0)

setStateManager

public void setStateManager(StateManager arg0)

setSupportedLocales

public void setSupportedLocales(java.util.Collection arg0)

setVariableResolver

public void setVariableResolver(VariableResolver arg0)

setViewHandler

public void setViewHandler(ViewHandler arg0)

getApplicationID

public ID getApplicationID()
Description copied from interface: Application
Returns the application ID. The application ID is used to identify the application as a target for communication purposes.

Specified by:
getApplicationID in interface Application
Returns:
the application id.

getConfigManager

public ConfigManager getConfigManager()
Description copied from interface: Application
Returns the ConfigManager of the application scope.

Specified by:
getConfigManager in interface Application
Returns:
the config manager

getServiceManager

public ServiceManager getServiceManager()
Description copied from interface: Application
Returns the object that implements the ServiceManager interface.

Specified by:
getServiceManager in interface Application
Returns:
the service manager

getSessionManager

public SessionManager getSessionManager()
Description copied from interface: Application
Returns the SessionManager of the application scope.

Specified by:
getSessionManager in interface Application
Returns:
the session manager

start

public void start()
Description copied from interface: Application
Realizes application startup.

In this method:

This method will be called after the creation of an instance.

An implementation can assume, that the Application already has an environment, e.g. the methods Application.getConfigManager(), Application.getServiceManager() and Application.getSessionManager() return valid and usable instances. Core services and initial configurations may already have been registered at this managers. But the SessionManager does not have a Session; starting sessions is in responsability of the implementor of this method.

Specified by:
start in interface Application

stop

public void stop()
          throws DisposeException
Description copied from interface: Application
Realizes application shutdown.

This method should remove registrations and do clean-up stuff, as necessary. An implementation should destroy all sessions and free all used resources. If appropriate, the virtual machine should be terminated at the end of this method.

The call to this method is irrevokable. If you want to allow for user interaction or server calls, you should do so before calling this method.

Note: The implementation must not return before the application is shut down. Any threads or asynchronous calls started during execution must be completed before this method returns.

Note: The Implementation should be able to cope with the same or other threads calling methods of the interface while executing this method. Avoid an implementation that may produce a deadlock.

Specified by:
stop in interface Application
Throws:
DisposeException - if there is an exception while destroying the components