Modify the event hook points in the Application class