ColdBox 2.0 New Feature - Pre/Post Event Handlers
What does this mean? Well, once an event is requested to the framework, let's say its "ehTools.dspTree". Then the framework will execute the dspTree method in the ehTools event handler.
Now, you can declare two new methods in the ehTools event handler: 1) preHandler 2)postHandler
Inside of those two new methods you will place any logic that will be executed before/after any requested event in that event handler cfc. This is a great way to implicitly run events before and after a requested event. You can even filter the type of logic you would like to execute inside of these methods by looking into the context object and seeing the event that was executed.
This is a great addition to the framework and I expect your comments on this addition. You can find the ticket
Read it and let me know your thoughts