nz.ac.auckland.syllabus.hooks.EventHook.groovy Maven / Gradle / Ivy
package nz.ac.auckland.syllabus.hooks
import nz.ac.auckland.syllabus.events.EventHandler
/**
* User: marnix
* Date: 3/04/13
* Time: 12:36 PM
*
* This is the interface to the hook that will be executed before an event handler is executed.
*/
interface EventHook {
/**
* It might throw a EventHookException. The Grayles Syllabus servlet would convert this into the
* proper HTTP status codes, but otherwise is implementation specific.
*
* @param event is the event that is about to be executed
*
* @throws EventHookException
*/
public void executeHook(EventHandler event) throws EventHookException;
}