Package org.zkoss.bind
Interface PhaseListener
- All Known Implementing Classes:
ClientBinderPhaseListener
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
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
Modifier and TypeMethodDescriptionvoidpostPhase(Phase phase, BindContext ctx) Callbacks after each phase.voidprePhase(Phase phase, BindContext ctx) Callbacks before each phase.
-
Method Details
-
prePhase
Callbacks before each phase.- Parameters:
phase- the phase idctx- the associatedBindContext
-
postPhase
Callbacks after each phase.- Parameters:
phase- the phase idctx- the associatedBindContext
-