org.datanucleus.plugin
Class Bundle

java.lang.Object
  extended by org.datanucleus.plugin.Bundle

public class Bundle
extends java.lang.Object

A Plug-in (OSGi Bundle) definition. Represents the XML declaration

Version:
$Revision: 1.3 $

Nested Class Summary
static class Bundle.BundleDescription
          Description of bundles bundle-description = symbolic-name (';' parameter )* See OSGI 3.0 $ 1.4.2
static class Bundle.BundleVersion
          Bundle Version - according to OSGi spec 3.0 3.2.4
static class Bundle.BundleVersionRange
          Bundle Range - according to OSGi spec 3.0 3.2.5
 
Constructor Summary
Bundle(java.lang.String symbolicName, java.lang.String name, java.lang.String vendorName, java.lang.String version, java.net.URL manifestLocation)
          Constructor
 
Method Summary
 java.net.URL getManifestLocation()
          Acessor for the location of the manifest.mf file
 java.lang.String getName()
          Acessor for the plug-in name
 java.util.List getRequireBundle()
          Acessor for the RequireBundle
 java.lang.String getSymbolicName()
          Accessor for the plug-in id - bundle symbolic name
 java.lang.String getVendorName()
          Accessor for the provider name of this plug-in
 java.lang.String getVersion()
          Acessor for the version of this plug-in
 void setRequireBundle(java.util.List requireBundle)
          Acessor for the RequireBundle.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 name
name - the name
vendorName - the vendor name
version - the version number
manifestLocation - 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 requireBundle)
Acessor for the RequireBundle.

Parameters:
requireBundle - A List of Bundle.BundleDescription elements

getRequireBundle

public java.util.List getRequireBundle()
Acessor for the RequireBundle

Returns:
A List of Bundle.BundleDescription elements

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.