Package org.datanucleus.plugin
Class Bundle
- java.lang.Object
-
- org.datanucleus.plugin.Bundle
-
public class Bundle extends java.lang.ObjectA 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
-
Field Summary
Fields Modifier and Type Field Description private java.net.URLmanifestLocationlocation of the manifest.mf file *private java.lang.Stringnamename *private java.util.List<Bundle.BundleDescription>requireBundleSet of BundleDescription objects representing Require-Bundle entriesprivate java.lang.StringsymbolicNameunique id - bundle symbolic name *private java.lang.StringvendorNamevendor name *private java.lang.Stringversionplugin 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.URLgetManifestLocation()Acessor for the location of the manifest.mf filejava.lang.StringgetName()Acessor for the plug-in namejava.util.List<Bundle.BundleDescription>getRequireBundle()Acessor for the RequireBundlejava.lang.StringgetSymbolicName()Accessor for the plug-in id - bundle symbolic namejava.lang.StringgetVendorName()Accessor for the provider name of this plug-injava.lang.StringgetVersion()Acessor for the version of this plug-invoidsetRequireBundle(java.util.List<Bundle.BundleDescription> requireBundle)Acessor for the RequireBundle.java.lang.StringtoString()
-
-
-
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.BundleDescriptionelements
-
getRequireBundle
public java.util.List<Bundle.BundleDescription> getRequireBundle()
Acessor for the RequireBundle- Returns:
- A List of
Bundle.BundleDescriptionelements
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-