Debian Codegraph @

src/org/osgi/annotation/bundle/Referenced.java

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 /*******************************************************************************
2 * Copyright (c) Contributors to the Eclipse Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * SPDX-License-Identifier: Apache-2.0
17 *******************************************************************************/
18
19 package org.osgi.annotation.bundle;
20
21 import java.lang.annotation.Documented;
22 import java.lang.annotation.ElementType;
23 import java.lang.annotation.Retention;
24 import java.lang.annotation.RetentionPolicy;
25 import java.lang.annotation.Target;
26
27 /**
28 * Mark types as referenced.
29 * <p>
30 * A reference can cause the package of a specified type to be imported if the
31 * bundle does not contain the package.
32 * <p>
33 * This annotation is not retained at runtime. It is for use by tools to
34 * generate bundle manifests.
35 *
36 * @author $Id: decc490d50f3af3eb76857061a324e9540761d92 $
37 */
38 @Documented
39 @Retention(RetentionPolicy.CLASS)
40 @Target({
41 ElementType.TYPE, ElementType.PACKAGE
42 })
43 public @interface Referenced {
44 /**
45 * A list of referenced classes.
46 * <p>
47 * Specifying a class in this annotation must be treated by tools as if the
48 * annotated type has a code reference to the class which may result in an
49 * import of the package of the class if the bundle does not contain that
50 * package.
51 */
52 Class< ? >[] value();
53 }