I just wrote a simple OnRequestEnd.cfm file for MachII Applications.
<!--- debugging output, show
all properties
all listeners
all filters
all events
actual eventargs
actual eventname
all views
all plugins
--->
<cfset am=application[MACHII_APP_KEY].apploader.getappmanager()>
<cfset pm=am.getpropertymanager()>
Properties: <cfdump var="#pm.getproperties()#"><br>
<cfset lm=am.getlistenermanager()>
Listeners: <cfdump var="#ListToArray(lm.getlisteners())#"><br>
<cfset fm=am.getfiltermanager()>
Filters: <cfdump var="#ListToArray(fm.getfilters())#"><br>
<cfset em=am.geteventmanager()>
Events: <cfdump var="#ListToArray(em.getevents())#"><br>
<cfset rh=am.getrequesthandler()>
Actual Eventargs: <cfdump var="#rh.getrequesteventargs()#"><br>
Actual Eventname: <cfdump
var="#rh.geteventname(rh.getrequesteventargs())#"><br><br>
<cfset vm=am.getviewmanager()>
Views: <cfdump var="#ListToArray(vm.getviews())#"><br>
<cfset pm=am.getpluginmanager()>
Plugins: <cfdump var="#ListToArray(pm.getplugins())#">
In order to display these values, the framework had to be extended:
FilterManager - new function
<cffunction name="getFilters" access="public" returntype="string"
output="false">
<cfreturn StructKeyList(variables.filters) />
</cffunction>
PluginManager - new function
<cffunction name="getPlugins" access="public" returntype="string"
output="false">
<cfreturn StructKeyList(variables.plugins) />
</cffunction>
ListenerManager - new function
<cffunction name="getListeners" access="public" returntype="string"
output="false">
<cfreturn StructKeyList(variables.listeners) />
</cffunction>
EventManager - new property, set property, new function
<cfset variables.events = StructNew() />
...
<cfset eventName = eventNodes[i].xmlAttributes['event']
/>
>>>new line <cfset variables.events[eventName] = "event">
...
<cffunction name="getEvents" access="public" returntype="string"
output="false">
<cfreturn StructKeyList(variables.events) />
</cffunction>
ViewManager - new property, set property, new function
<cfset variables.views = StructNew() />
...
<cfset name = viewNodes[i].xmlAttributes['name'] />
>>>new line <cfset variables.views[name] = "view">
...
<cffunction name="getViews" access="public" returntype="string"
output="false">
<cfreturn StructKeyList(variables.views) />
</cffunction>
Do you think, that this changes are useful and should be introduced in a
new MachII Version?
--
Harry Klein | Konzeption und Entwicklung
CONTENS Software GmbH
Oettingenstr. 25 | 80538 M�nchen
Fon: +49 (0)89 5199 69-0 | Fax: +49 (0)89 5199 69-78
mailto:[EMAIL PROTECTED] | http://www.contens.de
******************************************
Besuchen Sie CONTENS auf der
iEX Internet Expo 2004 in Z�rich
04. - 06. Februar 2004
Halle 5, Stand 5.163
Mehr Infos finden Sie hier:
www.contens.de/iex <http://www.contens.de/iex>
******************************************
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]