Ticket #113 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Event Handler CFC's- Two new implicit methods: "PreHandler" "PostHandler"

Reported by: lmajano Owned by: lmajano
Priority: high Milestone: 2.0.0
Component: Architecture Version: 2.0.0 Beta
Severity: normal Keywords:
Cc:

Description

This implicit feature introduces two new event handler methods that you can declare on your handler cfc. Any time an event will be executed, the framework will check if the preHandler method exists in the cfc. If it does it will execute it before the requested event.

After the requested event gets executed, the framework will test if the postHandler method exists in the cfc. If it does, it will execute it.

This new functionality will give developers the flexibility to create pre/post handler events before a requested event is handled. Remember that this is only for the requested handler method in the same cfc. If you have more than one handler in your application, the pre/post methods in each handler cfc will execute according in which handler cfc the event exists. More granularity and control.

Remember that on the pre/post handlers you can run anything, you can call other handlers via the RunEvent?() method.

Change History

Changed 3 years ago by lmajano

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.