| Package: MachII.framework |
| Inherits from: framework.BaseComponent |
| Base Plugin component. |
| Method Summary | |
|---|---|
| public Plugin | init(AppManager appManager, [struct parameters]) |
| public void |
abortEvent([string message=""])
Call this function to abort processing of the current event. When called, an AbortEventException exception is thrown, caught, and handled by the framework. |
| public void |
handleException(EventContext eventContext, Exception exception)
Plugin point called when an exception occurs (before exception event is handled). Override to provide custom functionality. |
| public void |
postEvent(EventContext eventContext)
Plugin point called after each event is processed. Override to provide custom functionality. |
| public void |
postProcess(EventContext eventContext)
Plugin point called after event processing finishes. Override to provide custom functionality. |
| public void |
postView(EventContext eventContext)
Plugin point called after each view is processed. Override to provide custom functionality. |
| public void |
preEvent(EventContext eventContext)
Plugin point called before each event is processed. Override to provide custom functionality. |
| public void |
preProcess(EventContext eventContext)
Plugin point called before event processing begins. Override to provide custom functionality. |
| public void |
preView(EventContext eventContext)
Plugin point called before each view is processed. Override to provide custom functionality. |
| Methods inherited from framework.BaseComponent: isParameterDefined , hasParameter , setProperty , announceEvent , getAppManager , setAppManager , configure , setParameters , getParameters , getProperty , getParameter , setParameter |
|---|
| Method Detail |
|---|
| abortEvent |
|---|
public void abortEvent( [string message=""] )
Call this function to abort processing of the current event. When called, an AbortEventException exception is thrown, caught, and handled by the framework.
Parameters:
| [string message=""] |
Code:
<cffunction name="abortEvent" access="public" returntype="void" output="false" hint="Call this function to abort processing of the current event. When called, an AbortEventException exception is thrown, caught, and handled by the framework."> <cfargument name="message" type="string" required="false" default="" /> <cfthrow type="AbortEventException" message="#arguments.message#" /> </cffunction>
| handleException |
|---|
public void handleException( EventContext eventContext, Exception exception )
Plugin point called when an exception occurs (before exception event is handled). Override to provide custom functionality.
Parameters:
| EventContext eventContext |
| Exception exception |
Code:
<cffunction name="handleException" access="public" returntype="void" output="true" hint="Plugin point called when an exception occurs (before exception event is handled). Override to provide custom functionality."> <cfargument name="eventContext" type="MachII.framework.EventContext" required="true" /> <cfargument name="exception" type="MachII.util.Exception" required="true" /> </cffunction>
| init |
|---|
public Plugin init( AppManager appManager, [struct parameters] )
Parameters:
| AppManager appManager |
| [struct parameters] |
Code:
<cffunction name="init" access="public" returntype="Plugin" output="false"> <cfargument name="appManager" type="MachII.framework.AppManager" required="true" /> <cfargument name="parameters" type="struct" required="false" /> <cfset super.init(arguments.appManager, arguments.parameters) /> <cfreturn this /> </cffunction>
| postEvent |
|---|
public void postEvent( EventContext eventContext )
Plugin point called after each event is processed. Override to provide custom functionality.
Parameters:
| EventContext eventContext |
Code:
<cffunction name="postEvent" access="public" returntype="void" output="true" hint="Plugin point called after each event is processed. Override to provide custom functionality."> <cfargument name="eventContext" type="MachII.framework.EventContext" required="true" /> </cffunction>
| postProcess |
|---|
public void postProcess( EventContext eventContext )
Plugin point called after event processing finishes. Override to provide custom functionality.
Parameters:
| EventContext eventContext |
Code:
<cffunction name="postProcess" access="public" returntype="void" output="true" hint="Plugin point called after event processing finishes. Override to provide custom functionality."> <cfargument name="eventContext" type="MachII.framework.EventContext" required="true" /> </cffunction>
| postView |
|---|
public void postView( EventContext eventContext )
Plugin point called after each view is processed. Override to provide custom functionality.
Parameters:
| EventContext eventContext |
Code:
<cffunction name="postView" access="public" returntype="void" output="true" hint="Plugin point called after each view is processed. Override to provide custom functionality."> <cfargument name="eventContext" type="MachII.framework.EventContext" required="true" /> </cffunction>
| preEvent |
|---|
public void preEvent( EventContext eventContext )
Plugin point called before each event is processed. Override to provide custom functionality.
Parameters:
| EventContext eventContext |
Code:
<cffunction name="preEvent" access="public" returntype="void" output="true" hint="Plugin point called before each event is processed. Override to provide custom functionality."> <cfargument name="eventContext" type="MachII.framework.EventContext" required="true" /> </cffunction>
| preProcess |
|---|
public void preProcess( EventContext eventContext )
Plugin point called before event processing begins. Override to provide custom functionality.
Parameters:
| EventContext eventContext |
Code:
<cffunction name="preProcess" access="public" returntype="void" output="true" hint="Plugin point called before event processing begins. Override to provide custom functionality."> <cfargument name="eventContext" type="MachII.framework.EventContext" required="true" /> </cffunction>
| preView |
|---|
public void preView( EventContext eventContext )
Plugin point called before each view is processed. Override to provide custom functionality.
Parameters:
| EventContext eventContext |
Code:
<cffunction name="preView" access="public" returntype="void" output="true" hint="Plugin point called before each view is processed. Override to provide custom functionality."> <cfargument name="eventContext" type="MachII.framework.EventContext" required="true" /> </cffunction>