Update EventListener annotation

This commit is contained in:
JeremyStar™ 2024-06-10 19:25:41 +02:00
parent b24d7c5473
commit 6481dea957
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -21,6 +21,7 @@ package de.staropensource.sosengine.base.annotations;
import de.staropensource.sosengine.base.classes.Event;
import de.staropensource.sosengine.base.classes.EventPriority;
import org.jetbrains.annotations.NotNull;
import java.lang.annotation.*;
@ -37,6 +38,7 @@ public @interface EventListener {
*
* @return the event the method listens for
*/
@NotNull
Class<? extends Event> event();
/**
@ -44,5 +46,6 @@ public @interface EventListener {
*
* @return the event priority
*/
EventPriority priority();
@NotNull
EventPriority priority() default EventPriority.DEFAULT;
}