com.surelogic
Annotation Type RegionLocks


@Documented
@Target(value=TYPE)
public @interface RegionLocks

Container annotation for multiple RegionLock annotations. It is a modeling error for a class to have both a RegionLocks and a RegionLock annotation.

Examples:

Declaring two lock policies on the same class (assuming the two named regions have been previously declared).
 @RegionLocks({
   @RegionLock("SetLock is this protects SetRegion"),
   @RegionLock("ObserverLock is observerLock protects ObserverRegion")
 })
 class Example { ... }
 

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 RegionLock("SetLock is this protects SetRegion")
  * @annotate RegionLock("ObserverLock is observerLock protects ObserverRegion")
  */
 class Example { ... }
 

See Also:
RegionLock

Required Element Summary
 RegionLock[] value
          The RegionLock annotations to apply to the class.
 

Element Detail

value

public abstract RegionLock[] value
The RegionLock annotations to apply to the class.



Copyright © 2010 Surelogic, Inc.. All Rights Reserved.