Package org.zkoss.zk.ui.metainfo
Class VariableResolverInfo
- java.lang.Object
-
- org.zkoss.zk.ui.metainfo.VariableResolverInfo
-
public class VariableResolverInfo extends java.lang.ObjectA definition of the variable resolver (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.
- Author:
- tomyeh
-
-
Constructor Summary
Constructors Constructor Description VariableResolverInfo(java.lang.Class<? extends org.zkoss.xel.VariableResolver> cls)Constructs with a class.VariableResolverInfo(java.lang.Class<? extends org.zkoss.xel.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(org.zkoss.xel.VariableResolver resolver)Constructs with an initiator that will be reuse each timenewVariableResolver(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page)is called.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.zkoss.xel.VariableResolvernewVariableResolver(PageDefinition pgdef, Page page)Creates and returns the variable resolver for the specified page.org.zkoss.xel.VariableResolvernewVariableResolver(Evaluator eval, Page page)Creates and returns the variable resolver for the specified page.java.lang.StringtoString()
-
-
-
Constructor Detail
-
VariableResolverInfo
public VariableResolverInfo(java.lang.Class<? extends org.zkoss.xel.VariableResolver> cls, java.util.Map<java.lang.String,java.lang.String> args)Constructs with a class.- Parameters:
args- the map of arguments. Ignored if null.
Notice that, once assigned, the map belongs to this object, and the caller shall not access it again- Since:
- 3.6.2
-
VariableResolverInfo
public VariableResolverInfo(java.lang.Class<? extends org.zkoss.xel.VariableResolver> cls)
Constructs with a class.
-
VariableResolverInfo
public VariableResolverInfo(java.lang.String clsnm, java.util.Map<java.lang.String,java.lang.String> args) throws java.lang.ClassNotFoundExceptionConstructs with a class name.- Parameters:
clsnm- the class name; it could be an EL expression.- Throws:
java.lang.ClassNotFoundException- Since:
- 3.6.2
-
VariableResolverInfo
public VariableResolverInfo(java.lang.String clsnm) throws java.lang.ClassNotFoundExceptionConstructs with a class name.- 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 timenewVariableResolver(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
Creates and returns the variable resolver for the specified page.- Throws:
java.lang.Exception
-
newVariableResolver
public org.zkoss.xel.VariableResolver newVariableResolver(Evaluator eval, Page page) throws java.lang.Exception
Creates and returns the variable resolver for the specified page.- Throws:
java.lang.Exception- Since:
- 3.6.2
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-