Paul -

Why are listeners being registered by a string? Why not just pass trough the
objects reference?

If you have an object reference, you can do a dynamic method invocation
through cfinvoke, and you wouldn't have an issue.

Regards,

Mark

On 3/18/07, Paul Vernon <[EMAIL PROTECTED]> wrote:
>
> I'm working on an event listener for our application framework and I've
> got
> a piece of code that I'd rather have work another way if possible.
>
> The code is:
>
> <cfset
> evaluate("#registeredEventHandlers[counter]#(argumentCollection=
> arguments.ev
> entArguments)")>
>
> currentEventHandlers[counter] evaulates to a cfc name eg
> "application.blogcfc" at this point in time it is a string and not a
> pointer
> to an object in memory...
>
> Right now, because the string could be pretty much anything, I can't see
> any
> other way of doing this to force CF to run an arbitrary function with
> arbitrary arguments when I fire off an event in the framework.
>
> Any ideas would be appreciated!
>
> Paul
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272918
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to