|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.impl.AbstractWebApp
public abstract class AbstractWebApp
A skeletal implementation of WebApp.
| Constructor Summary | |
|---|---|
protected |
AbstractWebApp()
Constructor. |
| Method Summary | |
|---|---|
void |
destroy()
Destroys this Web applicaiton. |
java.lang.String |
getAppName()
Returns the application name, never null. |
Configuration |
getConfiguration()
Returns the configuration. |
DesktopCache |
getDesktopCache(Session sess)
Returns the desktop cache. |
DesktopCacheProvider |
getDesktopCacheProvider()
Returns the desktop cache provider. |
FailoverManager |
getFailoverManager()
Returns the failover manager, or null if not available. |
IdGenerator |
getIdGenerator()
Returns the ID generator, or null if not available. |
int |
getSubversion(int portion)
Returns a portion of the version in an integer by specifying its index. |
UiEngine |
getUiEngine()
Returns the UI engine for this Web application (never null). |
UiFactory |
getUiFactory()
Returns the UI factory for this Web application (never null). |
java.lang.String |
getVersion()
Returns the ZK version, such as "1.1.0" and "2.0.0". |
void |
init(java.lang.Object context,
Configuration config)
Initializes this Web application. |
void |
sessionDidActivate(Session sess)
Invokes getDesktopCacheProvider()'s
DesktopCacheProvider.sessionDidActivate(org.zkoss.zk.ui.Session). |
void |
sessionWillPassivate(Session sess)
Invokes getDesktopCacheProvider()'s
DesktopCacheProvider.sessionWillPassivate(org.zkoss.zk.ui.Session). |
void |
setAppName(java.lang.String name)
Sets the applicationname. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.zkoss.zk.ui.WebApp |
|---|
getAttribute, getAttributes, getInitParameter, getInitParameterNames, getMimeType, getNativeContext, getRealPath, getResource, getResourceAsStream, getResourcePaths, getWebApp, removeAttribute, setAttribute |
| Methods inherited from interface org.zkoss.util.resource.Locator |
|---|
getDirectory |
| Constructor Detail |
|---|
protected AbstractWebApp()
Note: after constructed, it is not initialized completely.
For example, getConfiguration() returns null.
WebManager will initialize it later such as initializing
a Configuration instance by loading zk.xml,
and then calling init(java.lang.Object, org.zkoss.zk.ui.util.Configuration).
| Method Detail |
|---|
public java.lang.String getAppName()
WebAppDefault: ZK
getAppName in interface WebApppublic void setAppName(java.lang.String name)
WebApp
setAppName in interface WebApppublic final java.lang.String getVersion()
WebApp
getVersion in interface WebAppWebApp.getSubversion(int)public int getSubversion(int portion)
WebApp
getSubversion in interface WebAppportion - which portion of the version; starting from 0.
If you want to retrieve the major verion, specify 0.WebApp.getVersion()public final Configuration getConfiguration()
WebApp
getConfiguration in interface WebApp
public void init(java.lang.Object context,
Configuration config)
WebAppCtrl
init in interface WebAppCtrlcontext - the servlet context, if servlets are used.
Currently, ZK supports only servlets. In the future there might be
more to support.config - the configuration (never null)public void destroy()
WebAppCtrlNote; once destroyed, this instance cannot be used anymore.
destroy in interface WebAppCtrlpublic final UiEngine getUiEngine()
WebAppCtrl
getUiEngine in interface WebAppCtrlpublic DesktopCache getDesktopCache(Session sess)
WebAppCtrlWebAppCtrl.getDesktopCacheProvider()'s
DesktopCacheProvider.getDesktopCache(org.zkoss.zk.ui.Session).
getDesktopCache in interface WebAppCtrlpublic DesktopCacheProvider getDesktopCacheProvider()
WebAppCtrl
getDesktopCacheProvider in interface WebAppCtrlpublic UiFactory getUiFactory()
WebAppCtrl
getUiFactory in interface WebAppCtrlpublic FailoverManager getFailoverManager()
WebAppCtrl
getFailoverManager in interface WebAppCtrlpublic IdGenerator getIdGenerator()
WebAppCtrl
getIdGenerator in interface WebAppCtrlpublic void sessionWillPassivate(Session sess)
getDesktopCacheProvider()'s
DesktopCacheProvider.sessionWillPassivate(org.zkoss.zk.ui.Session).
sessionWillPassivate in interface WebAppCtrlpublic void sessionDidActivate(Session sess)
getDesktopCacheProvider()'s
DesktopCacheProvider.sessionDidActivate(org.zkoss.zk.ui.Session).
sessionDidActivate in interface WebAppCtrl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||