public class VariableResolverInfo
extends java.lang.Object
VariableResolver
).
Note: we resolve the class by using 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 variable-resolver directive (and better performance).
Note: it is not serializable.
Constructor and Description |
---|
VariableResolverInfo(java.lang.Class<? extends VariableResolver> cls)
Constructs with a class.
|
VariableResolverInfo(java.lang.Class<? extends VariableResolver> cls,
java.util.Map<java.lang.String,java.lang.String> args)
Constructs with a class.
|
VariableResolverInfo(java.lang.String clsnm)
Constructs with a class name.
|
VariableResolverInfo(java.lang.String clsnm,
java.util.Map<java.lang.String,java.lang.String> args)
Constructs with a class name.
|
VariableResolverInfo(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. |
Modifier and Type | Method and Description |
---|---|
VariableResolver |
newVariableResolver(Evaluator eval,
Page page)
Creates and returns the variable resolver for the specified page.
|
VariableResolver |
newVariableResolver(PageDefinition pgdef,
Page page)
Creates and returns the variable resolver for the specified page.
|
java.lang.String |
toString() |
public VariableResolverInfo(java.lang.Class<? extends VariableResolver> cls, java.util.Map<java.lang.String,java.lang.String> args)
args
- the map of arguments. Ignored if null.public VariableResolverInfo(java.lang.Class<? extends VariableResolver> cls)
public VariableResolverInfo(java.lang.String clsnm, java.util.Map<java.lang.String,java.lang.String> args) throws java.lang.ClassNotFoundException
clsnm
- the class name; it could be an EL expression.java.lang.ClassNotFoundException
public VariableResolverInfo(java.lang.String clsnm) throws java.lang.ClassNotFoundException
clsnm
- the class name; it could be an EL expression.java.lang.ClassNotFoundException
public VariableResolverInfo(VariableResolver resolver)
newVariableResolver(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page)
is called.public VariableResolver newVariableResolver(PageDefinition pgdef, Page page) throws java.lang.Exception
java.lang.Exception
public VariableResolver newVariableResolver(Evaluator eval, Page page) throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.