Debian Codegraph @

src/org/osgi/annotation/bundle/Header.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.Repeatable;
24 import java.lang.annotation.Retention;
25 import java.lang.annotation.RetentionPolicy;
26 import java.lang.annotation.Target;
27
28 /**
29 * Define a manifest header for a bundle.
30 * <p>
31 * For example:
32 *
33 * <pre>
34 * &#64;Header(name=Constants.BUNDLE_CATEGORY, value="osgi")
35 * </pre>
36 * <p>
37 * This annotation is not retained at runtime. It is for use by tools to
38 * generate bundle manifests.
39 *
40 * @author $Id: 2dde5d7c3ed43968e3354a0b12fc0653eed71efc $
41 */
42 @Documented
43 @Retention(RetentionPolicy.CLASS)
44 @Target({
45 ElementType.TYPE, ElementType.PACKAGE
46 })
47 @Repeatable(Headers.class)
48 public @interface Header {
49
50 /**
51 * The name of this header.
52 */
53 String name();
54
55 /**
56 * The value of this header.
57 */
58 String value();
59 }