|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Inherited @Retention(value=RUNTIME) @Target(value={TYPE,METHOD,PARAMETER,FIELD,LOCAL_VARIABLE}) public @interface Participant
Identifies a participant as described in [Gamma95, p.7]: a class or object participating in the design pattern.
The scope of the design pattern is considered to be the (parent) package enclosing the identified participant. The annotated target represents the participant. For example, if the target is a field, the object stored in the field is the participant.
If the annotated target is a type, the participant is declared by the type.
ParticipantUsage
Required Element Summary | |
---|---|
String[] |
value
The roles this participant fulfil in the pattern. |
Element Detail |
---|
public abstract String[] value
|
Gunni Rode / rode.dk | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |