package dev.kske.eventbus; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.*; /** * Indicates that a method is an event handler. To be successfully used as such, the method has to * comply with the following specifications: * * * @author Kai S. K. Engelbart * @since 0.0.1 */ @Documented @Retention(RUNTIME) @Target(METHOD) public @interface Event { /** * Defines the priority of the event handler. Handlers are executed in descending order of their * priority. *

* The execution order of handlers with the same priority is undefined. * * @since 0.0.1 */ int priority() default 100; }