org.zkoss.zk.ui.util
Interface WebAppInit

All Known Implementing Classes:
DemoWebAppInit, HibernateSessionFactoryListener, WebAppInit

public interface WebAppInit

Used to initialize a ZK application when it is created.

How this interface is used.

  1. First, you specify a class that implements this interface in WEB-INF/zk.xml as a listener.
  2. Then, even time a ZK application is created, an instnace of the specified class is instantiated and init(org.zkoss.zk.ui.WebApp) is called.

Author:
tomyeh

Method Summary
 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.getNativeContext()

Throws:
java.lang.Exception


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo