pt.digitalis.dif.dem.annotations.metaannotations
Annotation Type BindToPrimary


@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
public @interface BindToPrimary

Defines the list of primary annotations that accept the current annotation. This meta-annotation is mandatory on non-primary annotations.

Author:
Pedro Viegas pviegas@digitalis.pt, Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
Aug 29, 2007

Required Element Summary
 String[] value
          The FQN's of the annotations that can be used with the non-primary annotation.
 

Element Detail

value

public abstract String[] value
The FQN's of the annotations that can be used with the non-primary annotation. TODO: Should allow for simple class names, defaulting to the current package. Also allow the use of: - "#BasePackage#.entities.ApplicationDefinition - "#BasePackage#.Application - "#Entities#.ApplicationDefinition - "#Parameter#.Parameter - "#Stage#.ErrorView Algorithm (TO Rodrigo, BY Rodrigo): On DEM Annotation's discovery: 1) read the package of the the annotation annotated by this meta-annotation (Class.getPackage().getName()??) 2) rewrite this member value's with the read package name concatenated with the member value Use an helper method since it's also present on @ExclusiveWith



Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.