org.zkoss.zk.ui.metainfo
Class VariableResolverInfo

java.lang.Object
  extended by org.zkoss.zk.ui.metainfo.VariableResolverInfo

public class VariableResolverInfo
extends java.lang.Object

A definition of the variable resolver (VariableResolver).

Note: we resolve the class by use fo Classes.forNameByThread. In other words, it doesn't support the class defined in zscript. Why not? Since there is no way to run zscript before the init directive (and better performance).

Author:
tomyeh

Constructor Summary
VariableResolverInfo(java.lang.Class cls)
          Constructs with a class, and newVariableResolver(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will instantiate a new instance.
VariableResolverInfo(java.lang.String clsnm)
          Constructs with a class name and newVariableResolver(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will instantiate a new instance.
VariableResolverInfo(org.zkoss.xel.VariableResolver resolver)
          Constructs with an initiator that will be reuse each time newVariableResolver(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) is called.
 
Method Summary
 org.zkoss.xel.VariableResolver newVariableResolver(PageDefinition pgdef, Page page)
          Creaetes and returns the variable resolver for the specified page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableResolverInfo

public VariableResolverInfo(java.lang.Class cls)
Constructs with a class, and newVariableResolver(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will instantiate a new instance.


VariableResolverInfo

public VariableResolverInfo(java.lang.String clsnm)
                     throws java.lang.ClassNotFoundException
Constructs with a class name and newVariableResolver(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will instantiate a new instance.

Parameters:
clsnm - the class name; it could be an EL expression.
Throws:
java.lang.ClassNotFoundException

VariableResolverInfo

public VariableResolverInfo(org.zkoss.xel.VariableResolver resolver)
Constructs with an initiator that will be reuse each time newVariableResolver(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) is called.

Method Detail

newVariableResolver

public org.zkoss.xel.VariableResolver newVariableResolver(PageDefinition pgdef,
                                                          Page page)
                                                   throws java.lang.Exception
Creaetes and returns the variable resolver for the specified page.

Throws:
java.lang.Exception


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.