Class Bundle
java.lang.Object
org.datanucleus.plugin.Bundle
A Plug-in (OSGi Bundle) definition. Represents the XML declaration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescription of bundles.static classBundle Version - according to OSGi spec 3.0 $3.2.4static classBundle Range - according to OSGi spec 3.0 $3.2.5 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final URLlocation of the manifest.mf file *private final Stringname *private List<Bundle.BundleDescription> Set of BundleDescription objects representing Require-Bundle entriesprivate final Stringunique id - bundle symbolic name *private final Stringvendor name *private final Stringplugin version * -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAcessor for the location of the manifest.mf filegetName()Acessor for the plug-in nameAcessor for the RequireBundleAccessor for the plug-in id - bundle symbolic nameAccessor for the provider name of this plug-inAcessor for the version of this plug-invoidsetRequireBundle(List<Bundle.BundleDescription> requireBundle) Acessor for the RequireBundle.toString()
-
Field Details
-
symbolicName
unique id - bundle symbolic name * -
vendorName
vendor name * -
name
name * -
version
plugin version * -
manifestLocation
location of the manifest.mf file * -
requireBundle
Set of BundleDescription objects representing Require-Bundle entries
-
-
Constructor Details
-
Bundle
public Bundle(String symbolicName, String name, String vendorName, String version, URL manifestLocation) Constructor- Parameters:
symbolicName- the unique id - bundle symbolic namename- the namevendorName- the vendor nameversion- the version numbermanifestLocation- the path to the declaration file
-
-
Method Details
-
getSymbolicName
Accessor for the plug-in id - bundle symbolic name- Returns:
- id of the plug-in
-
getVendorName
-
getVersion
-
getManifestLocation
Acessor for the location of the manifest.mf file- Returns:
- the manifest.mf location
-
getName
-
setRequireBundle
Acessor for the RequireBundle.- Parameters:
requireBundle- A List ofBundle.BundleDescriptionelements
-
getRequireBundle
Acessor for the RequireBundle- Returns:
- A List of
Bundle.BundleDescriptionelements
-
toString
-