|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectApplication
com.sdm.quasar.client.jsf.application.QuasarCompositeApplication
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.
| 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 |
public QuasarCompositeApplication(Application jsfApplication,
Application quasarApplication)
jsfApplication - the default JSF application instancequasarApplication - the quasar application instance| Method Detail |
public void addComponent(java.lang.String arg0,
java.lang.String arg1)
public void addConverter(java.lang.String arg0,
java.lang.String arg1)
public void addConverter(java.lang.Class arg0,
java.lang.String arg1)
public void addValidator(java.lang.String arg0,
java.lang.String arg1)
public UIComponent createComponent(java.lang.String arg0)
throws FacesException
FacesException
public UIComponent createComponent(ValueBinding arg0,
FacesContext arg1,
java.lang.String arg2)
throws FacesException
FacesExceptionpublic Converter createConverter(java.lang.String arg0)
public Converter createConverter(java.lang.Class arg0)
public MethodBinding createMethodBinding(java.lang.String arg0,
java.lang.Class[] arg1)
throws ReferenceSyntaxException
ReferenceSyntaxException
public Validator createValidator(java.lang.String arg0)
throws FacesException
FacesException
public ValueBinding createValueBinding(java.lang.String arg0)
throws ReferenceSyntaxException
ReferenceSyntaxExceptionpublic ActionListener getActionListener()
public java.util.Iterator getComponentTypes()
public java.util.Iterator getConverterIds()
public java.util.Iterator getConverterTypes()
public java.util.Locale getDefaultLocale()
public java.lang.String getDefaultRenderKitId()
public java.lang.String getMessageBundle()
public NavigationHandler getNavigationHandler()
public PropertyResolver getPropertyResolver()
public StateManager getStateManager()
public java.util.Iterator getSupportedLocales()
public java.util.Iterator getValidatorIds()
public VariableResolver getVariableResolver()
public ViewHandler getViewHandler()
public void setActionListener(ActionListener arg0)
public void setDefaultLocale(java.util.Locale arg0)
public void setDefaultRenderKitId(java.lang.String arg0)
public void setMessageBundle(java.lang.String arg0)
public void setNavigationHandler(NavigationHandler arg0)
public void setPropertyResolver(PropertyResolver arg0)
public void setStateManager(StateManager arg0)
public void setSupportedLocales(java.util.Collection arg0)
public void setVariableResolver(VariableResolver arg0)
public void setViewHandler(ViewHandler arg0)
public ID getApplicationID()
Application
getApplicationID in interface Applicationpublic ConfigManager getConfigManager()
ApplicationConfigManager of the application scope.
getConfigManager in interface Applicationpublic ServiceManager getServiceManager()
ApplicationServiceManager interface.
getServiceManager in interface Applicationpublic SessionManager getSessionManager()
ApplicationSessionManager of the application scope.
getSessionManager in interface Applicationpublic void start()
ApplicationIn this method:
ConfigManager;
see ConfigManager.addValue(String, Object) and
ConfigManager.addValuesWithReader(com.sdm.quasar.client.core.common.config.ConfigReader),ServiceManager.registerService(Class, com.sdm.quasar.client.core.common.services.Service),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.
start in interface Application
public void stop()
throws DisposeException
ApplicationThis 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.
stop in interface ApplicationDisposeException - if there is an exception while destroying the components
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||