Package org.datanucleus.plugin
Class Bundle
- java.lang.Object
-
- org.datanucleus.plugin.Bundle
-
public class Bundle extends Object
A Plug-in (OSGi Bundle) definition. Represents the XML declaration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBundle.BundleDescriptionDescription of bundles.static classBundle.BundleVersionBundle Version - according to OSGi spec 3.0 $3.2.4static classBundle.BundleVersionRangeBundle Range - according to OSGi spec 3.0 $3.2.5
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLgetManifestLocation()Acessor for the location of the manifest.mf fileStringgetName()Acessor for the plug-in nameList<Bundle.BundleDescription>getRequireBundle()Acessor for the RequireBundleStringgetSymbolicName()Accessor for the plug-in id - bundle symbolic nameStringgetVendorName()Accessor for the provider name of this plug-inStringgetVersion()Acessor for the version of this plug-invoidsetRequireBundle(List<Bundle.BundleDescription> requireBundle)Acessor for the RequireBundle.StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
getSymbolicName
public String getSymbolicName()
Accessor for the plug-in id - bundle symbolic name- Returns:
- id of the plug-in
-
getVendorName
public String getVendorName()
Accessor for the provider name of this plug-in- Returns:
- provider name
-
getVersion
public String getVersion()
Acessor for the version of this plug-in- Returns:
- version
-
getManifestLocation
public URL getManifestLocation()
Acessor for the location of the manifest.mf file- Returns:
- the manifest.mf location
-
getName
public String getName()
Acessor for the plug-in name- Returns:
- plug-in name
-
setRequireBundle
public void setRequireBundle(List<Bundle.BundleDescription> requireBundle)
Acessor for the RequireBundle.- Parameters:
requireBundle- A List ofBundle.BundleDescriptionelements
-
getRequireBundle
public List<Bundle.BundleDescription> getRequireBundle()
Acessor for the RequireBundle- Returns:
- A List of
Bundle.BundleDescriptionelements
-
-