Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
StageDefinition |
|
| 0.0;0 |
1 | /** | |
2 | * - Digitalis Internal Framework v2.0 - (C) 2007, Digitalis Informatica. Distribuicao e Gestao de Informatica, Lda. | |
3 | * Estrada de Paco de Arcos num.9 - Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 4408999 | |
4 | * http://www.digitalis.pt | |
5 | */ | |
6 | package pt.digitalis.dif.dem.annotations.entities; | |
7 | ||
8 | import java.lang.annotation.ElementType; | |
9 | import java.lang.annotation.Retention; | |
10 | import java.lang.annotation.RetentionPolicy; | |
11 | import java.lang.annotation.Target; | |
12 | ||
13 | import pt.digitalis.dif.dem.annotations.AnnotationTags; | |
14 | import pt.digitalis.dif.dem.annotations.metaannotations.Primary; | |
15 | ||
16 | /** | |
17 | * This annotations defines a Stage class. A Stage belongs at most to a service. | |
18 | * | |
19 | * @author Rodrigo Gonçalves <a href="mailto:rgoncalves@digitalis.pt">rgoncalves@digitalis.pt</a> | |
20 | * @created 2007/05/10 | |
21 | */ | |
22 | @Target(ElementType.TYPE) | |
23 | @Retention(RetentionPolicy.RUNTIME) | |
24 | @Primary | |
25 | public @interface StageDefinition { | |
26 | ||
27 | /** The Stage id. The default value is the class name lower-case version. */ | |
28 | String id() default AnnotationTags.GENERATE_ID; | |
29 | ||
30 | /** The Stage name. Mandatory field!! */ | |
31 | String name(); | |
32 | ||
33 | /** The service to which this Stage belongs. Mandatory field!! */ | |
34 | String service(); | |
35 | ||
36 | /** If the current stage should override an existing one with the given id */ | |
37 | String overrideDefault() default AnnotationTags.NONE; | |
38 | ||
39 | /** The ID of channel to which the Stage is associated. */ | |
40 | String channel() default AnnotationTags.DEFAULT_CHANNEL; | |
41 | ||
42 | } |