patterntesting.annotation.concurrent
Annotation Type GuardedBy


@Documented
@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface GuardedBy

With this annotation you can document the lock which guards the field or method. This annotation is only for documentation - there is no aspect available which uses it.

Since:
16.01.2009
Version:
$Revision: 1.1 $
Author:
oliver

Optional Element Summary
 String value
          use the object (e.g.
 

value

public abstract String value
use the object (e.g. "myLock") which guardes the lock

Default:
"this"


Copyright © 2002–2014 PatternTesting Team. All rights reserved.