Package org.datanucleus.plugin
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 class
Description of bundles.static class
Bundle Version - according to OSGi spec 3.0 $3.2.4static class
Bundle Range - according to OSGi spec 3.0 $3.2.5 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final URL
location of the manifest.mf file *private final String
name *private List
<Bundle.BundleDescription> Set of BundleDescription objects representing Require-Bundle entriesprivate final String
unique id - bundle symbolic name *private final String
vendor name *private final String
plugin 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-invoid
setRequireBundle
(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
Accessor for the provider name of this plug-in- Returns:
- provider name
-
getVersion
Acessor for the version of this plug-in- Returns:
- version
-
getManifestLocation
Acessor for the location of the manifest.mf file- Returns:
- the manifest.mf location
-
getName
Acessor for the plug-in name- Returns:
- plug-in name
-
setRequireBundle
Acessor for the RequireBundle.- Parameters:
requireBundle
- A List ofBundle.BundleDescription
elements
-
getRequireBundle
Acessor for the RequireBundle- Returns:
- A List of
Bundle.BundleDescription
elements
-
toString
-