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 class
Bundle.BundleDescription
Description of bundles.static class
Bundle.BundleVersion
Bundle Version - according to OSGi spec 3.0 $3.2.4static class
Bundle.BundleVersionRange
Bundle Range - according to OSGi spec 3.0 $3.2.5
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getManifestLocation()
Acessor for the location of the manifest.mf fileString
getName()
Acessor for the plug-in nameList<Bundle.BundleDescription>
getRequireBundle()
Acessor for the RequireBundleString
getSymbolicName()
Accessor for the plug-in id - bundle symbolic nameString
getVendorName()
Accessor for the provider name of this plug-inString
getVersion()
Acessor for the version of this plug-invoid
setRequireBundle(List<Bundle.BundleDescription> requireBundle)
Acessor for the RequireBundle.String
toString()
-
-
-
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.BundleDescription
elements
-
getRequireBundle
public List<Bundle.BundleDescription> getRequireBundle()
Acessor for the RequireBundle- Returns:
- A List of
Bundle.BundleDescription
elements
-
-