aQute.bnd.annotation.headers
Annotation Type BundleLicense


@Retention(value=CLASS)
@Target(value={ANNOTATION_TYPE,TYPE})
public @interface BundleLicense

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 infor- mation 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 ::= ’<>’ |
                         ( license ( ’,’ license ) * )
    license        ::= name ( ’;’ license-attr ) *
    license-attr   ::= description | link
    description    ::= ’description’ ’=’ string
    link           ::= ’link’ ’=’ 
 
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 licenses have been predefined, ASL_2_0, BSD_2_Clause, BSD_3_Clause, CDDL_1_0, EPL_1_0, GPL_2_0, GPL_3_0, LGPL_2_1, MIT_1_0, MPL_2_0.


Required Element Summary
 String name
          The name of the license, should refer to Open Source Initiative
 
Optional Element Summary
 String description
          A short description of the license
 String link
          A URI to the license text.
 

Element Detail

name

public abstract String name
The name of the license, should refer to Open Source Initiative

description

public abstract String description
A short description of the license

Default:
""

link

public abstract String link
A URI to the license text. This maybe relative, in that case it is from the corresponding bundle.

Default:
""


Copyright © 2014 aQute SARL. All rights reserved.