public interface WebAppCtrl
WebApp
for implementation.
Note: applications shall never access this interface.
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys this Web application.
|
AuDecoder |
getAuDecoder()
Returns the AU decoder for this Web application,
or null if not assigned.
|
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.
|
SessionCache |
getSessionCache()
Returns the session cache (never null).
|
UiEngine |
getUiEngine()
Returns the UI engine for this Web application (never null).
|
UiFactory |
getUiFactory()
Returns the UI factory for this Web application (never null).
|
void |
init(java.lang.Object context,
Configuration config)
Initializes this Web application.
|
void |
sessionDestroyed(Session sess)
Called when the native session of the specified session
has been destroyed
|
void |
sessionDidActivate(Session sess)
Notification that the session has just been activated
(a.k.a., deserialized).
|
void |
sessionWillPassivate(Session sess)
Notification that the session is about to be passivated
(a.k.a., serialized).
|
void |
setAuDecoder(AuDecoder audec)
Sets the AU decoder for this Web application.
|
void |
setDesktopCacheProvider(DesktopCacheProvider provider)
Sets the desktop provider for this Web application.
|
void |
setFailoverManager(FailoverManager manager)
Sets the failover manager for this Web application.
|
void |
setIdGenerator(IdGenerator generator)
Sets the ID generator for this Web application.
|
void |
setSessionCache(SessionCache cache)
Sets the session cache for this Web application.
|
void |
setUiEngine(UiEngine engine)
Sets the UI engine for this Web application.
|
void |
setUiFactory(UiFactory factory)
Sets the UI factory for this Web application.
|
void init(java.lang.Object context, Configuration config)
context
- 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)void destroy()
Note; once destroyed, this instance cannot be used anymore.
UiEngine getUiEngine()
void setUiEngine(UiEngine engine)
engine
- the UI enginejava.lang.IllegalArgumentException
- if engine is null.DesktopCache getDesktopCache(Session sess)
getDesktopCacheProvider()
's
DesktopCacheProvider.getDesktopCache(org.zkoss.zk.ui.Session)
.DesktopCacheProvider getDesktopCacheProvider()
void setDesktopCacheProvider(DesktopCacheProvider provider)
provider
- the desktop cache providerjava.lang.IllegalArgumentException
- if provider is null.UiFactory getUiFactory()
void setUiFactory(UiFactory factory)
factory
- the UI factoryjava.lang.IllegalArgumentException
- if factory is null.FailoverManager getFailoverManager()
void setFailoverManager(FailoverManager manager)
manager
- the failover manager.
If null, it means no failover manager at all.IdGenerator getIdGenerator()
void setIdGenerator(IdGenerator generator)
generator
- the ID generator.
If null, it means no (custom) ID generator at all.SessionCache getSessionCache()
void setSessionCache(SessionCache cache)
cache
- the session cachejava.lang.IllegalArgumentException
- if cache is null.AuDecoder getAuDecoder()
void setAuDecoder(AuDecoder audec)
Default: null (using the system default).
void sessionWillPassivate(Session sess)
void sessionDidActivate(Session sess)
void sessionDestroyed(Session sess)
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.