This is more of an announcement of the upcoming 1.2.0 features.
Since event handler caching will be instilled into the framework, the
performance is dramatic. It actually, does not make sense to be
creating event handlers for each request. So version 1.2.0 will be the
last version to support un-cached handlers. The versions after 1.2.0
will have caching of handlers by default. I see no benefit of
uncaching the handlers. And they can easily be recreated by using
So. Since event handler caching actually changes A LOT in event
execution. The methods will receive the request collection object,
instead of the handler beign injected with it at creation. What does
this imply? Well, mainly the 'rc' scope will become deprecated. You
can keep it, however, you must var scope it locally.
var rc = arguments.oRC (or whatever the argument is named, still
Please keep this in mind.
There will also be some changes due to your suggestions, to have a way
to distinguish framework methods from local ones. Most likely, the
oRC object will also hold some extra methods to invoke some external
commands. This is still in the definition process. I guess an example
would be on how to run an event from within an event. Example code:
I will then run the event and pass in the oRC as you see above.
Please give me your input on these upcoming features. The event
handler caching is a totally different execution process and some
previous version code will have to be altered, but it is for the
common good. You will see the execution differences. You will never
think you are running your application in a framework.
Please give me your input.