forked from StarOpenSource/Engine
Update EventListener annotation
This commit is contained in:
parent
b24d7c5473
commit
6481dea957
1 changed files with 4 additions and 1 deletions
|
@ -21,6 +21,7 @@ package de.staropensource.sosengine.base.annotations;
|
||||||
|
|
||||||
import de.staropensource.sosengine.base.classes.Event;
|
import de.staropensource.sosengine.base.classes.Event;
|
||||||
import de.staropensource.sosengine.base.classes.EventPriority;
|
import de.staropensource.sosengine.base.classes.EventPriority;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
@ -37,6 +38,7 @@ public @interface EventListener {
|
||||||
*
|
*
|
||||||
* @return the event the method listens for
|
* @return the event the method listens for
|
||||||
*/
|
*/
|
||||||
|
@NotNull
|
||||||
Class<? extends Event> event();
|
Class<? extends Event> event();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,5 +46,6 @@ public @interface EventListener {
|
||||||
*
|
*
|
||||||
* @return the event priority
|
* @return the event priority
|
||||||
*/
|
*/
|
||||||
EventPriority priority();
|
@NotNull
|
||||||
|
EventPriority priority() default EventPriority.DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue