Add EventPriority method to EventHandler

This commit is contained in:
Dabo Ross 2013-09-05 01:55:25 -07:00 committed by md_5
parent eaea090d37
commit d3c1acce83

View File

@ -9,4 +9,19 @@ import java.lang.annotation.Target;
@Target(ElementType.METHOD)
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;
}