io.javalin.core.event.EventHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javalin Show documentation
Show all versions of javalin Show documentation
Javalin: Simple REST APIs for Java and Kotlin
/*
* Javalin - https://javalin.io
* Copyright 2017 David Åse
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.core.event;
/**
* Main interface for Lifecycle Event Handlers. A Runnable does not suffice because
* the an event handler may throw a checked exception.
*
* @see Lifecycle Events in documentation
*/
@FunctionalInterface
public interface EventHandler {
void handleEvent() throws Exception;
}