@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface RegionLocks
RegionLock annotations. It is a
modeling error for a class to have both a RegionLocks and a
RegionLock annotation.
RegionLock annotations without imposing
any further constraint on the program's implementation.
@RegionLocks({
@RegionLock("SetLock is this protects SetRegion"),
@RegionLock("ObserverLock is observerLock protects ObserverRegion")
})
class Example { ... }
@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 RegionLock("SetLock is this protects SetRegion")
* @annotate RegionLock("ObserverLock is observerLock protects ObserverRegion")
*/
class Example { ... }
RegionLock| Modifier and Type | Required Element and Description |
|---|---|
RegionLock[] |
value
The
RegionLock annotations to apply to the class. |
public abstract RegionLock[] value
RegionLock annotations to apply to the class.Copyright © 2012 Surelogic, Inc.. All Rights Reserved.