| Package: MachII.framework |
| Base Invoker component. |
| Method Summary | |
|---|---|
| public ListenerInvoker |
init()
Initialization function called by the framework. |
| public void |
invokeListener(Event event, any listener, string method, [string resultKey=""])
Invokes the target Listener with the Event. |
| Method Detail |
|---|
| init |
|---|
public ListenerInvoker init( )
Initialization function called by the framework.
Parameters:
Code:
<cffunction name="init" access="public" returntype="ListenerInvoker" output="false" hint="Initialization function called by the framework."> <cfreturn this /> </cffunction>
| invokeListener |
|---|
public void invokeListener( Event event, any listener, string method, [string resultKey=""] )
Invokes the target Listener with the Event.
Parameters:
| Event event |
| any listener |
| string method |
| [string resultKey=""] |
Code:
<cffunction name="invokeListener" access="public" returntype="void" hint="Invokes the target Listener with the Event."> <cfargument name="event" type="MachII.framework.Event" required="true" hint="The Event triggering the invocation." /> <cfargument name="listener" required="true" hint="The Listener to invoke." /> <cfargument name="method" type="string" required="true" hint="The name of the Listener's method to invoke." /> <cfargument name="resultKey" type="string" required="false" default="" hint="The result key." /> </cffunction>