From b24d7c5473accdf2f3695e1383c2416b46104904 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 10 Jun 2024 19:25:13 +0200 Subject: [PATCH] Add default event priority + update javadoc --- .../sosengine/base/classes/EventPriority.java | 35 +++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/classes/EventPriority.java b/base/src/main/java/de/staropensource/sosengine/base/classes/EventPriority.java index 41fe2e8..eab0797 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/classes/EventPriority.java +++ b/base/src/main/java/de/staropensource/sosengine/base/classes/EventPriority.java @@ -19,40 +19,63 @@ package de.staropensource.sosengine.base.classes; +import de.staropensource.sosengine.base.annotations.EventListener; + /** * Determines in which order events are processed. + * + * @since 1-alpha0 */ @SuppressWarnings("unused") public enum EventPriority { /** - * Events with this priority are processed first. + * {@link EventListener}s with this priority are processed first. * This event is exclusive to subsystems and should not be used by applications. + * + * @since 1-alpha0 */ EXTREMELY_IMPORTANT, /** - * Events with this priority are processed after {@code EXTREMELY_IMPORTANT}. + * {@link EventListener}s with this priority are executed first. + * + * @since 1-alpha0 */ VERY_IMPORTANT, /** - * Events with this priority are processed after {@code VERY_IMPORTANT}. + * {@link EventListener}s with this priority are executed second. + * + * @since 1-alpha0 */ IMPORTANT, /** - * Events with this priority are processed after {@code IMPORTANT}. + * The default event priority, {@link EventListener}s with this priority are executed third. + * + * @since 1-alpha0 + */ + DEFAULT, + + /** + * {@link EventListener}s with this priority are executed fourth. + * + * @since 1-alpha0 */ UNIMPORTANT, /** - * Events with this priority are processed after {@code UNIMPORTANT}. + * {@link EventListener}s with this priority are executed fifth. + * + * @since 1-alpha0 */ VERY_UNIMPORTANT, /** - * Events with this priority are processed last. + * {@link EventListener}s with this priority are processed last. * This event is exclusive to subsystems and should not be used by applications. + * + * @since 1-alpha0 */ EXTREMELY_UNIMPORTANT, }