Package org.zkoss.zk.ui.util
Interface WebAppCleanup
-
- All Known Implementing Classes:
WebSocketWebAppInit
public interface WebAppCleanup
Used to initialize a ZK application when it about to be destroyed.How this interface is used.
- First, you specify a class that implements this interface in WEB-INF/zk.xml as a listener.
- Then, every time a ZK application is going to be destroyed, an instance of
the specified class is instantiated and
cleanup(org.zkoss.zk.ui.WebApp)
is called.
- Author:
- tomyeh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cleanup(WebApp wapp)
called when a ZK application is about to be destroyed.
-
-
-
Method Detail
-
cleanup
void cleanup(WebApp wapp) throws java.lang.Exception
called when a ZK application is about to be destroyed.If this method throws an exception, the error message is only logged (user won't see it).
- Throws:
java.lang.Exception
-
-