Package org.datanucleus.plugin
Class Bundle
- java.lang.Object
-
- org.datanucleus.plugin.Bundle
-
public class Bundle extends java.lang.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
-
Field Summary
Fields Modifier and Type Field Description private java.net.URL
manifestLocation
location of the manifest.mf file *private java.lang.String
name
name *private java.util.List<Bundle.BundleDescription>
requireBundle
Set of BundleDescription objects representing Require-Bundle entriesprivate java.lang.String
symbolicName
unique id - bundle symbolic name *private java.lang.String
vendorName
vendor name *private java.lang.String
version
plugin version *
-
Constructor Summary
Constructors Constructor Description Bundle(java.lang.String symbolicName, java.lang.String name, java.lang.String vendorName, java.lang.String version, java.net.URL manifestLocation)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URL
getManifestLocation()
Acessor for the location of the manifest.mf filejava.lang.String
getName()
Acessor for the plug-in namejava.util.List<Bundle.BundleDescription>
getRequireBundle()
Acessor for the RequireBundlejava.lang.String
getSymbolicName()
Accessor for the plug-in id - bundle symbolic namejava.lang.String
getVendorName()
Accessor for the provider name of this plug-injava.lang.String
getVersion()
Acessor for the version of this plug-invoid
setRequireBundle(java.util.List<Bundle.BundleDescription> requireBundle)
Acessor for the RequireBundle.java.lang.String
toString()
-
-
-
Field Detail
-
symbolicName
private final java.lang.String symbolicName
unique id - bundle symbolic name *
-
vendorName
private final java.lang.String vendorName
vendor name *
-
name
private final java.lang.String name
name *
-
version
private final java.lang.String version
plugin version *
-
manifestLocation
private final java.net.URL manifestLocation
location of the manifest.mf file *
-
requireBundle
private java.util.List<Bundle.BundleDescription> requireBundle
Set of BundleDescription objects representing Require-Bundle entries
-
-
Constructor Detail
-
Bundle
public Bundle(java.lang.String symbolicName, java.lang.String name, java.lang.String vendorName, java.lang.String version, java.net.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 java.lang.String getSymbolicName()
Accessor for the plug-in id - bundle symbolic name- Returns:
- id of the plug-in
-
getVendorName
public java.lang.String getVendorName()
Accessor for the provider name of this plug-in- Returns:
- provider name
-
getVersion
public java.lang.String getVersion()
Acessor for the version of this plug-in- Returns:
- version
-
getManifestLocation
public java.net.URL getManifestLocation()
Acessor for the location of the manifest.mf file- Returns:
- the manifest.mf location
-
getName
public java.lang.String getName()
Acessor for the plug-in name- Returns:
- plug-in name
-
setRequireBundle
public void setRequireBundle(java.util.List<Bundle.BundleDescription> requireBundle)
Acessor for the RequireBundle.- Parameters:
requireBundle
- A List ofBundle.BundleDescription
elements
-
getRequireBundle
public java.util.List<Bundle.BundleDescription> getRequireBundle()
Acessor for the RequireBundle- Returns:
- A List of
Bundle.BundleDescription
elements
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-