org.zkoss.zk.scripting
Interface NamespaceActivationListener

All Known Implementing Classes:
B2241309Composer, B2446682, DemoWindowComposer, GenericAutowireComposer, GenericComposer, GenericForwardComposer, MainLayoutComposer, MyAutowireComposer, MyForwardComposer, VariableComposer, ZscriptComposer

public interface NamespaceActivationListener

Used to notify an object stored in a namespace, when the namespace is going to be deactivated or has been activated.

When a namespace is going to be deactivate, it checks every variable to see whether this interface is implemented. If implemented, willPassivate(org.zkoss.zk.scripting.Namespace) will be called. Similarly, didActivate(org.zkoss.zk.scripting.Namespace) is called if the namespace has been activated.

Since:
3.6.2
Author:
tomyeh

Method Summary
 void didActivate(Namespace ns)
          Called when a session has just been activated (and its value has been deserialized).
 void willPassivate(Namespace ns)
          Called when a session is about to be passivated (and then serialize its value).
 

Method Detail

didActivate

void didActivate(Namespace ns)
Called when a session has just been activated (and its value has been deserialized).


willPassivate

void willPassivate(Namespace ns)
Called when a session is about to be passivated (and then serialize its value).



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