org.modeshape.common.annotation
Annotation Type GuardedBy


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

Copyright (c) 2005 Brian Goetz and Tim Peierls.
Released under the Creative Commons Attribution License
(http://creativecommons.org/licenses/by/2.5)
Official home: http://www.jcip.net
Adopted from Java Concurrency in Practice.

An annotation that describes the monitor protecting the annotated field or method. For example, @GuardedBy("this") specifies that the lock is the object in whose class the field or method is defined, while @GuardedBy("lock") specifies that the method or field is guarded by a lock held in the "lock" field.

See Also:
ThreadSafe, NotThreadSafe, Immutable

Required Element Summary
 String value
           
 

Element Detail

value

public abstract String value


Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.