public class InitiatorInfo
extends java.lang.Object
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 init directive (and better performance).
Note: it is not serializable.
Constructor and Description |
---|
InitiatorInfo(java.lang.Class<? extends Initiator> cls,
java.util.Map<java.lang.String,java.lang.String> args)
Constructs with a class, and
newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will
instantiate a new instance. |
InitiatorInfo(Initiator init,
java.util.Map<java.lang.String,java.lang.String> args)
Constructs with an initiator that will be reuse each time
newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) is called. |
InitiatorInfo(java.lang.String clsnm,
java.util.Map<java.lang.String,java.lang.String> args)
Constructs with a class name and
newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page) will
instantiate a new instance. |
Modifier and Type | Method and Description |
---|---|
Initiator |
newInitiator(Evaluator eval,
Page page)
Creates and returns the initiator, or null if no initiator is resolved.
|
Initiator |
newInitiator(PageDefinition pgdef,
Page page)
Creates and returns the initiator, or null if no initiator is resolved.
|
public InitiatorInfo(java.lang.Class<? extends Initiator> cls, java.util.Map<java.lang.String,java.lang.String> args)
newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page)
will
instantiate a new instance.args
- the map of arguments. Ignored if null.public InitiatorInfo(java.lang.String clsnm, java.util.Map<java.lang.String,java.lang.String> args) throws java.lang.ClassNotFoundException
newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page)
will
instantiate a new instance.clsnm
- the class name; it could be an EL expression.java.lang.ClassNotFoundException
public InitiatorInfo(Initiator init, java.util.Map<java.lang.String,java.lang.String> args)
newInitiator(org.zkoss.zk.ui.metainfo.PageDefinition, org.zkoss.zk.ui.Page)
is called.public Initiator newInitiator(PageDefinition pgdef, Page page) throws java.lang.Exception
Initiator.doInit(org.zkoss.zk.ui.Page, java.util.Map<java.lang.String, java.lang.Object>)
was called before returned.java.lang.Exception
public Initiator newInitiator(Evaluator eval, Page page) throws java.lang.Exception
Initiator.doInit(org.zkoss.zk.ui.Page, java.util.Map<java.lang.String, java.lang.Object>)
was called before returned.java.lang.Exception
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.