org.ops4j.pax.radman.service.bundleManager
Class OSGiBundle

java.lang.Object
  extended by org.ops4j.pax.radman.service.bundleManager.OSGiBundle
All Implemented Interfaces:
java.io.Serializable

public class OSGiBundle
extends java.lang.Object
implements java.io.Serializable

OSGiBundle represent an OSGi bundle.

Since:
0.1.0
Author:
Edward Yakop, Johnathan T. Marchant
See Also:
Serialized Form

Constructor Summary
OSGiBundle(org.osgi.framework.Bundle bundle)
          Construct an instance of OSGiBundle with the specified argument.
 
Method Summary
 java.lang.String getBundleSymbolicName()
          Returns the bundle symbolic name.
 java.lang.String getBundleURL()
          Returns the bundle URL.
 java.util.List<OSGiServiceReference> getRegisteredServices()
          Returns the list of services, each represented by OSGiServiceReference, that are registered for this bundle at a particular moment.
 java.util.List<OSGiServiceReference> getServicesInUse()
          Returns the list of services, each represented by OSGiServiceReference, that are use by this bundle at a particular moment.
 java.lang.String getVersion()
          Returns the bundle version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiBundle

public OSGiBundle(org.osgi.framework.Bundle bundle)
           throws java.lang.IllegalArgumentException
Construct an instance of OSGiBundle with the specified argument.

Parameters:
bundle - The bundle. This argument must not be null.
Throws:
java.lang.IllegalArgumentException - Thrown if the specified bundle is null.
Since:
0.1.1
Method Detail

getBundleSymbolicName

public final java.lang.String getBundleSymbolicName()
Returns the bundle symbolic name. This method must not return null object.

Returns:
The bundle symbolic name.
Since:
0.1.0
See Also:
Constants.BUNDLE_SYMBOLICNAME

getVersion

public final java.lang.String getVersion()
Returns the bundle version. This method must not return null object.

Returns:
The bundle version.
Since:
0.1.0
See Also:
Constants.BUNDLE_VERSION

getBundleURL

public final java.lang.String getBundleURL()
Returns the bundle URL.

Returns:
The bundle URL.
Since:
0.1.0
See Also:
Constants.BUNDLE_UPDATELOCATION

getRegisteredServices

public final java.util.List<OSGiServiceReference> getRegisteredServices()
Returns the list of services, each represented by OSGiServiceReference, that are registered for this bundle at a particular moment. Returns an empty list if there are none.

Returns:
The list of services that this bundle provides.
Since:
0.1.0

getServicesInUse

public final java.util.List<OSGiServiceReference> getServicesInUse()
Returns the list of services, each represented by OSGiServiceReference, that are use by this bundle at a particular moment. Returns an empty list if there are none.

Returns:
The list of services used by this bundle.
Since:
0.1.0


Copyright © 2008. All Rights Reserved.