Top Description Methods
aQute.bnd.annotation.headers

public @Interface BundleLicense

extends Annotation
Annotations
@Documented
@Retention:CLASS
@Target:PACKAGE, TYPE
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target

The Bundle-License header provides an optional machine readable form of license information. The purpose of this header is to automate some of the license processing required by many organizations like for example license acceptance before a bundle is used. The header is structured to provide the use of unique license naming to merge acceptance requests, as well as links to human readable information about the included licenses. This header is purely informational for management agents and must not be processed by the OSGi Framework.

The syntax for this header is as follows:

Bundle-License ::= ’<<EXTERNAL>>’ | ( license ( ’,’ license ) * )
license ::= name ( ’;’ license-attr )
license-attr ::= description | link
description ::= ’description’ ’=’ string
link ::= ’link’ ’=’ <url>
This header has the following attributes: If the Bundle-License statement is absent, then this does not mean that the bundle is not licensed. Licensing could be handled outside the bundle and the <<EXTERNAL>> form should be assumed. This header is informational and may not have any legal bearing. Consult a lawyer before using this header to automate licensing processing.

A number of license annotations have been predefined. For example: Apache_2_0, BSD_2_Clause, BSD_3_Clause, CDDL_1_0, EPL_1_0 , EPL_2_0 , GPL_2_0, GPL_3_0, LGPL_2_1, MIT, and MPL_2_0.

Method Summary

Modifier and TypeMethod and Description
public String
description()

A short description of the license

public String
name()

The name of the license, should refer to Software Package Data Exchange (SPDX) License List

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

descriptionback to summary
public String description()

A short description of the license

nameback to summary
public String name()

The name of the license, should refer to Software Package Data Exchange (SPDX) License List