01: /* EvaluatorRef.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Mon Sep 3 21:44:33 2007, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2007 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.zk.xel.impl;
20:
21: import org.zkoss.zk.ui.metainfo.PageDefinition;
22: import org.zkoss.zk.xel.Evaluator;
23:
24: /**
25: * A reference to {@link Evaluator}.
26: * Thought it also implements {@link Evaluator}, it is different in two
27: * ways:
28: *
29: * <ul>
30: * <li>It is serializable, while {@link Evaluator} is not.</li>
31: * <li>It is late-binding to the real evaluator.
32: * The evaluator is accessed only {@link #evaluate}, {@link #parseExpression},
33: * or {@link #getEvaluator} is called.
34: * </li>
35: * </ul>
36: *
37: * @author tomyeh
38: * @since 3.0.0
39: */
40: public interface EvaluatorRef extends Evaluator, java.io.Serializable {
41: /** Returns the real evaluator.
42: */
43: public Evaluator getEvaluator();
44:
45: /** Returns the page definition of this reference, or null if not
46: * available.
47: */
48: public PageDefinition getPageDefinition();
49: }
|