org.zkoss.zk.ui.metainfo
Class FunctionMapperInfo

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

public class FunctionMapperInfo
extends java.lang.Object

A definition of the function mapper (FunctionMapper).

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 function-mapper directive (and better performance).

Since:
3.5.0
Author:
tomyeh

Constructor Summary
FunctionMapperInfo(java.lang.Class cls)
          Constructs with a class.
FunctionMapperInfo(java.lang.Class cls, java.util.Collection 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.Collection args)
          Constructs with a class name.
 
Method Summary
 FunctionMapper newFunctionMapper(PageDefinition pgdef, Page page)
          Creaetes and returns the function mapper for the specified page.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionMapperInfo

public FunctionMapperInfo(java.lang.Class cls,
                          java.util.Collection args)
Constructs with a class.


FunctionMapperInfo

public FunctionMapperInfo(java.lang.Class cls)
Constructs with a class.


FunctionMapperInfo

public FunctionMapperInfo(java.lang.String clsnm,
                          java.util.Collection args)
                   throws java.lang.ClassNotFoundException
Constructs with a class name.

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

FunctionMapperInfo

public FunctionMapperInfo(java.lang.String clsnm)
                   throws java.lang.ClassNotFoundException
Constructs with a class name.

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

FunctionMapperInfo

public 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.

Method Detail

newFunctionMapper

public FunctionMapper newFunctionMapper(PageDefinition pgdef,
                                        Page page)
                                 throws java.lang.Exception
Creaetes and returns the function mapper for the specified page.

Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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