author | never |
Mon, 12 Jul 2010 22:27:18 -0700 | |
changeset 5926 | a36f90d986b6 |
parent 5506 | 202f599c92aa |
permissions | -rw-r--r-- |
406
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
1 |
/* |
5506 | 2 |
* Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. |
491
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
4 |
* |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
491
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
491
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
10 |
* |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
15 |
* accompanied this code). |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
16 |
* |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
a394684ccfe6
6697875: Copyright headers need to be upgraded with GPL derivative
kamg
parents:
406
diff
changeset
|
20 |
* |
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
406
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
24 |
*/ |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
25 |
|
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
26 |
package com.sun.tracing.dtrace; |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
27 |
|
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
28 |
import java.lang.annotation.Target; |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
29 |
import java.lang.annotation.Retention; |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
30 |
import java.lang.annotation.RetentionPolicy; |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
31 |
import java.lang.annotation.ElementType; |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
32 |
|
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
33 |
/** |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
34 |
* This annotation is used to describe the interface attributes of the |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
35 |
* {@code module} field for a single provider. |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
36 |
* |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
37 |
* This annotation can be added to a user-defined Provider specification |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
38 |
* interface to set the stability attributes of the {@code module} field for |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
39 |
* all probes specified in that provider. |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
40 |
* <p> |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
41 |
* If this annotation is not present, the interface attributes for the |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
42 |
* {@code module} field is Private/Private/Unknown. |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
43 |
* <p> |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
44 |
* @see <a href="http://docs.sun.com/app/docs/doc/817-6223/6mlkidlnp?a=view">Solaris Dynamic Tracing Guide, Chapter 39: Stability</a> |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
45 |
* @since 1.7 |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
46 |
*/ |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
47 |
@Retention(RetentionPolicy.RUNTIME) |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
48 |
@Target({ ElementType.TYPE }) |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
49 |
public @interface ModuleAttributes { |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
50 |
Attributes value(); |
bde3a21bcab0
6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
diff
changeset
|
51 |
} |