Package org.zkoss.zk.ui.util
Interface WebAppInit
-
- All Known Implementing Classes:
AuRedirect
,WebAppInit
,WebAppInit
,WebSocketWebAppInit
public interface WebAppInit
Used to initialize a ZK application when it is created.Notice that, when
init(org.zkoss.zk.ui.WebApp)
was called,WebApp
has been created. In other words, it is too late to change the implementation class of UiEngine viaConfiguration
. Rather, useWebAppCtrl.setUiFactory(org.zkoss.zk.ui.sys.UiFactory)
and other methods instead.How this interface is used.
- First, you specify a class that implements this interface in WEB-INF/zk.xml as a listener.
- Then, even time a ZK application is created, an instance of
the specified class is instantiated and
init(org.zkoss.zk.ui.WebApp)
is called.
- Author:
- tomyeh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
init(WebApp wapp)
Called when a ZK application is created and initialized.
-
-
-
Method Detail
-
init
void init(WebApp wapp) throws java.lang.Exception
Called when a ZK application is created and initialized.You could retrieve the servlet context by
WebApp.getServletContext()
- Throws:
java.lang.Exception
-
-