Commit 6daf45de4426f19ee1e478e31dd10a92799ba600
1 parent
d17d1289
Exists in
master
Adição de javadoc para a anotação
br.gov.frameworkdemoiselle.annotation.Priority
Showing
1 changed file
with
18 additions
and
1 deletions
Show diff stats
impl/core/src/main/java/br/gov/frameworkdemoiselle/annotation/Priority.java
| ... | ... | @@ -44,6 +44,8 @@ import java.lang.annotation.Retention; |
| 44 | 44 | import java.lang.annotation.Target; |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | + * Used to prioritize methods annotated with @startup or @shutdown | |
| 48 | + * | |
| 47 | 49 | * @author SERPRO |
| 48 | 50 | */ |
| 49 | 51 | @Target({ TYPE, METHOD }) |
| ... | ... | @@ -59,17 +61,32 @@ public @interface Priority { |
| 59 | 61 | * Less important priority value. |
| 60 | 62 | */ |
| 61 | 63 | static int MIN_PRIORITY = Integer.MAX_VALUE; |
| 62 | - | |
| 64 | + | |
| 65 | + /** | |
| 66 | + * Less important priority value. | |
| 67 | + */ | |
| 63 | 68 | static int L1_PRIORITY = MIN_PRIORITY; |
| 64 | 69 | |
| 70 | + /** | |
| 71 | + * Higher priority than L1_PRIORITY | |
| 72 | + */ | |
| 65 | 73 | static int L2_PRIORITY = L1_PRIORITY - 100; |
| 66 | 74 | |
| 75 | + /** | |
| 76 | + * Higher priority than L2_PRIORITY | |
| 77 | + */ | |
| 67 | 78 | static int L3_PRIORITY = L2_PRIORITY - 100; |
| 68 | 79 | |
| 80 | + /** | |
| 81 | + * Higher priority than L3_PRIORITY | |
| 82 | + */ | |
| 69 | 83 | static int L4_PRIORITY = L3_PRIORITY - 100; |
| 70 | 84 | |
| 71 | 85 | /** |
| 86 | + * <p> | |
| 72 | 87 | * An integer value defines the priority order. |
| 88 | + * <p> | |
| 89 | + * The lower the value, the greater priority. | |
| 73 | 90 | */ |
| 74 | 91 | int value(); |
| 75 | 92 | } | ... | ... |