org.zkoss.bind
Interface PhaseListener


public interface PhaseListener

A call back listener that allow user to intervene the execution life cycle.
Since 6.5.2 - You could set phase listener by setting library-property org.zkoss.bind.PhaseListener.class for example:

<library-property>
        <name>org.zkoss.bind.PhaseListener.class</name>
        <value>foo.BarListener</value>
</library-property>
 
Note: the listener instance is shared between all binders, it is not thread-safe, your implementation has to care the concurrent access issue.

Since:
6.0.0
Author:
henrichen, dennischen

Method Summary
 void postPhase(Phase phase, BindContext ctx)
          Callbacks after each phase.
 void prePhase(Phase phase, BindContext ctx)
          Callbacks before each phase.
 

Method Detail

prePhase

void prePhase(Phase phase,
              BindContext ctx)
Callbacks before each phase.

Parameters:
phase - the phase id
ctx - the associated BindContext

postPhase

void postPhase(Phase phase,
               BindContext ctx)
Callbacks after each phase.

Parameters:
phase - the phase id
ctx - the associated BindContext


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