public class FunctionMapperInfo
extends java.lang.Object
FunctionMapper
).
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 function-mapper directive (and better performance).
Note: it is not serializable.
Constructor and Description |
---|
FunctionMapperInfo(java.lang.Class<? extends FunctionMapper> cls)
Constructs with a class.
|
FunctionMapperInfo(java.lang.Class<? extends FunctionMapper> cls,
java.util.Map<java.lang.String,java.lang.String> args)
Constructs with a class.
|
FunctionMapperInfo(FunctionMapper mapper)
Constructs with an initiator that will be reuse each time
newFunctionMapper(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) is called. |
FunctionMapperInfo(java.lang.String clsnm)
Constructs with a class name.
|
FunctionMapperInfo(java.lang.String clsnm,
java.util.Map<java.lang.String,java.lang.String> args)
Constructs with a class name.
|
Modifier and Type | Method and Description |
---|---|
FunctionMapper |
newFunctionMapper(Evaluator eval,
Page page)
Creates and returns the function mapper for the specified evaluator and page.
|
FunctionMapper |
newFunctionMapper(PageDefinition pgdef,
Page page)
Creates and returns the function mapper for the specified pagedefinition and page.
|
java.lang.String |
toString() |
public FunctionMapperInfo(java.lang.Class<? extends FunctionMapper> cls, java.util.Map<java.lang.String,java.lang.String> args)
args
- the map of arguments. Ignored if null.public FunctionMapperInfo(java.lang.Class<? extends FunctionMapper> cls)
public FunctionMapperInfo(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 FunctionMapperInfo(java.lang.String clsnm) throws java.lang.ClassNotFoundException
clsnm
- the class name; it could be an EL expression.java.lang.ClassNotFoundException
public FunctionMapperInfo(FunctionMapper mapper)
newFunctionMapper(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page)
is called.public FunctionMapper newFunctionMapper(PageDefinition pgdef, Page page) throws java.lang.Exception
java.lang.Exception
public FunctionMapper newFunctionMapper(Evaluator eval, Page page) throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.