Skip to main content
summaryrefslogtreecommitdiffstats
blob: 0415e4dae4fe87f118458dcceb99e10f267c65f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**********************************************************************
 * This file is part of the "Object Teams Runtime Environment"
 *
 * Copyright 2009 Stephan Herrmann
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Please visit http://www.eclipse.org/objectteams for updates and contact.
 *
 * Contributors:
 * 			Stephan Herrmann - Initial API and implementation
 **********************************************************************/
package org.objectteams;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This marker annotation enables implicit team activation for the annotated element:
 * <ul>
 * <li>If attached to a method the effect is that each call to this method implicitly
 *     activates the enclosing team.</li>
 * <li>If attached to a class it has the same effect as annotating all contained methods.</li>
 * </ul>
 * See <a href="http://www.objectteams.org/def/1.3/s5.html#s5.3">OTJLD § 5.3</a>.
 * <p>
 * This annotation is only evaluated if the property <code>ot.implicit.team.activation</code>
 * is set to the string <code>ANNOTATED</code>.
 * </p>
 * @author stephan
 * @since 1.4.0
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface ImplicitTeamActivation {
	/* no members, pure marker annotation. */
}

Back to the top