View Javadoc

1   /*
2    * Copyright (c) 2005 Brian Goetz and Tim Peierls
3    * Released under the Creative Commons Attribution License
4    *   (http://creativecommons.org/licenses/by/2.5)
5    * Official home: http://www.jcip.net
6    *
7    * Any republication or derived work distributed in source code form
8    * must include this copyright and license notice.
9    */
10  
11  package ch.elca.el4j.util.concurrency;
12  
13  import java.lang.annotation.*;
14  
15  /**
16   * The class to which this annotation is applied is thread-safe.  This means that
17   * no sequences of accesses (reads and writes to public fields, calls to public methods)
18   * may put the object into an invalid state, regardless of the interleaving of those actions
19   * by the runtime, and without requiring any additional synchronization or coordination on the
20   * part of the caller.
21   *
22   * @svnLink $Revision: 3884 $;$Date: 2009-08-04 15:48:31 +0200 (Di, 04. Aug 2009) $;$Author: swismer $;$URL: https://el4j.svn.sourceforge.net/svnroot/el4j/branches/el4j_3_1/el4j/framework/modules/core/src/main/java/ch/elca/el4j/util/concurrency/ThreadSafe.java $
23   *
24   */
25  @Documented
26  @Target(ElementType.TYPE)
27  @Retention(RetentionPolicy.RUNTIME)
28  public @interface ThreadSafe {
29  }