Add EventPriority method to EventHandler
This commit is contained in:
parent
eaea090d37
commit
d3c1acce83
@ -9,4 +9,19 @@ import java.lang.annotation.Target;
|
|||||||
@Target(ElementType.METHOD)
|
@Target(ElementType.METHOD)
|
||||||
public @interface EventHandler
|
public @interface EventHandler
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Define the priority of the event handler.
|
||||||
|
* <p>
|
||||||
|
* Event handlers are called in order of priority:
|
||||||
|
* <ol>
|
||||||
|
* <li>LOWEST</li>
|
||||||
|
* <li>LOW</li>
|
||||||
|
* <li>NORMAL</li>
|
||||||
|
* <li>HIGH</li>
|
||||||
|
* <li>HIGHEST</li>
|
||||||
|
* <li>MONITOR</li>
|
||||||
|
* </ol>
|
||||||
|
*/
|
||||||
|
EventPriority priority() default EventPriority.NORMAL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user