View Javadoc
1   /*-
2    * #%L
3    * io.earcam.instrumental.module.osgi
4    * %%
5    * Copyright (C) 2018 earcam
6    * %%
7    * SPDX-License-Identifier: (BSD-3-Clause OR EPL-1.0 OR Apache-2.0 OR MIT)
8    * 
9    * You <b>must</b> choose to accept, in full - any individual or combination of 
10   * the following licenses:
11   * <ul>
12   * 	<li><a href="https://opensource.org/licenses/BSD-3-Clause">BSD-3-Clause</a></li>
13   * 	<li><a href="https://www.eclipse.org/legal/epl-v10.html">EPL-1.0</a></li>
14   * 	<li><a href="https://www.apache.org/licenses/LICENSE-2.0">Apache-2.0</a></li>
15   * 	<li><a href="https://opensource.org/licenses/MIT">MIT</a></li>
16   * </ul>
17   * #L%
18   */
19  package io.earcam.instrumental.module.osgi;
20  
21  import java.util.jar.Attributes.Name;
22  
23  // see spec and https://www.osgi.org/bundle-headers-reference/
24  /**
25   * <p>
26   * BundleManifestHeaders class.
27   * </p>
28   *
29   */
30  public enum BundleManifestHeaders {
31  
32  	//@formatter:off
33                          BUNDLE_CATEGORY("Bundle-Category"),   //csv
34  	                   BUNDLE_CLASSPATH("Bundle-ClassPath"),
35  	                   BUNDLE_COPYRIGHT("Bundle-Copyright"),
36                       BUNDLE_DESCRIPTION("Bundle-Description"),
37  	                        BUNDLE_NAME("Bundle-Name"),
38  	                  BUNDLE_NATIVECODE("Bundle-NativeCode"),
39  	                     EXPORT_PACKAGE("Export-Package"),
40  	                     IMPORT_PACKAGE("Import-Package"),
41  	              DYNAMICIMPORT_PACKAGE("DynamicImport-Package"),
42  	                      BUNDLE_VENDOR("Bundle-Vendor"),
43  	                     BUNDLE_VERSION("Bundle-Version"),
44  	                      BUNDLE_DOCURL("Bundle-DocURL"),
45  	              BUNDLE_CONTACTADDRESS("Bundle-ContactAddress"),
46  	                   BUNDLE_ACTIVATOR("Bundle-Activator"),
47  	         EXTENSION_BUNDLE_ACTIVATOR("ExtensionBundle-Activator"),
48  	              BUNDLE_UPDATELOCATION("Bundle-UpdateLocation"),
49  	BUNDLE_REQUIREDEXECUTIONENVIRONMENT("Bundle-RequiredExecutionEnvironment"),
50  	                BUNDLE_SYMBOLICNAME("Bundle-SymbolicName"),
51  	                BUNDLE_LOCALIZATION("Bundle-Localization"),
52  	                     REQUIRE_BUNDLE("Require-Bundle"),
53  	                      FRAGMENT_HOST("Fragment-Host"),
54  	             BUNDLE_MANIFESTVERSION("Bundle-ManifestVersion"),
55  	            BUNDLE_ACTIVATIONPOLICY("Bundle-ActivationPolicy"),
56  	                 PROVIDE_CAPABILITY("Provide-Capability"),
57  	                 REQUIRE_CAPABILITY("Require-Capability"),
58  	                        BUNDLE_ICON("Bundle-Icon"),
59  	                     BUNDLE_LICENSE("Bundle-License");
60  	//@formatter:on
61  
62  	private Name header;
63  
64  
65  	BundleManifestHeaders(String header)
66  	{
67  		this.header = new Name(header);
68  	}
69  
70  
71  	/**
72  	 * <p>
73  	 * header.
74  	 * </p>
75  	 *
76  	 * @return a {@link java.util.jar.Attributes.Name} object.
77  	 */
78  	public Name header()
79  	{
80  		return header;
81  	}
82  }