From 6daf45de4426f19ee1e478e31dd10a92799ba600 Mon Sep 17 00:00:00 2001 From: Emerson Oliveira Date: Mon, 5 Aug 2013 08:35:48 -0300 Subject: [PATCH] Adição de javadoc para a anotação br.gov.frameworkdemoiselle.annotation.Priority --- impl/core/src/main/java/br/gov/frameworkdemoiselle/annotation/Priority.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/impl/core/src/main/java/br/gov/frameworkdemoiselle/annotation/Priority.java b/impl/core/src/main/java/br/gov/frameworkdemoiselle/annotation/Priority.java index 61fe0e1..57c040b 100644 --- a/impl/core/src/main/java/br/gov/frameworkdemoiselle/annotation/Priority.java +++ b/impl/core/src/main/java/br/gov/frameworkdemoiselle/annotation/Priority.java @@ -44,6 +44,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; /** + * Used to prioritize methods annotated with @startup or @shutdown + * * @author SERPRO */ @Target({ TYPE, METHOD }) @@ -59,17 +61,32 @@ public @interface Priority { * Less important priority value. */ static int MIN_PRIORITY = Integer.MAX_VALUE; - + + /** + * Less important priority value. + */ static int L1_PRIORITY = MIN_PRIORITY; + /** + * Higher priority than L1_PRIORITY + */ static int L2_PRIORITY = L1_PRIORITY - 100; + /** + * Higher priority than L2_PRIORITY + */ static int L3_PRIORITY = L2_PRIORITY - 100; + /** + * Higher priority than L3_PRIORITY + */ static int L4_PRIORITY = L3_PRIORITY - 100; /** + *

* An integer value defines the priority order. + *

+ * The lower the value, the greater priority. */ int value(); } -- libgit2 0.21.2