com.surelogic
Annotation Type Layers
@Documented
@Target(value=PACKAGE)
public @interface Layers
Container annotation for multiple Layer annotations. It is a modeling
error for an entity to have both a Layers and a Layer
annotation.
Semantics:
This annotation holds a list Layer declarations without imposing any
further constraint on the program's implementation.
Examples:
Declaring two type sets on the same package (only in a package-info.java
file).
@Layers({
@Layer("MODEL may refer to UTIL"),
@Layer("CONTROLLER may refer to MODEL | java.io.File")
})
package org.example;
import com.surelogic.*;
Javadoc usage notes:
This annotation is not supported in Javadoc because Javadoc supports multiple
@annotate tags of the same type (see the example below).
Javadoc annotation can be useful for Java 1.4 code which does not include
language support for annotations.
/**
* @annotate Layer("MODEL may refer to UTIL")
* @annotate Layer("CONTROLLER may refer to MODEL | java.io.File")
*/
package org.example;
- See Also:
Layer
|
Required Element Summary |
Layer[] |
value
The Layer annotations to apply to the package. |
value
public abstract Layer[] value
- The
Layer annotations to apply to the package.
Copyright © 2011 Surelogic, Inc.. All Rights Reserved.