All Implemented Interfaces:
Comparable
The Framework returns ServiceReference
objects from the
BundleContext.getServiceReference
and
BundleContext.getServiceReferences
methods.
A ServiceReference
object may be shared between bundles and
can be used to examine the properties of the service and to get the service
object.
Every service registered in the Framework has a unique
ServiceRegistration
object and may have multiple, distinct
ServiceReference
objects referring to it.
ServiceReference
objects associated with a
ServiceRegistration
object have the same hashCode
and are considered equal (more specifically, their equals()
method will return true
when compared).
If the same service object is registered multiple times,
ServiceReference
objects associated with different
ServiceRegistration
objects are not equal.
$
- Revision: 1.20 $Method from org.osgi.framework.ServiceReference Summary: |
---|
compareTo, getBundle, getProperty, getPropertyKeys, getUsingBundles, isAssignableTo |
Method from org.osgi.framework.ServiceReference Detail: |
---|
ServiceReference with the specified
ServiceReference for order.
If this |
ServiceReference object.
This method must return |
Dictionary object of the service
referenced by this ServiceReference object.
Property keys are case-insensitive.
This method must continue to return property values after the service has
been unregistered. This is so references to unregistered services (for
example, |
Dictionary
object of the service referenced by this ServiceReference
object.
This method will continue to return the keys after the service has been
unregistered. This is so references to unregistered services (for
example,
This method is case-preserving ; this means that every key in the
returned array must have the same case as the corresponding key in the
properties |
ServiceReference object. Specifically, this method returns
the bundles whose usage count for that service is greater than zero. |
ServiceReference and the specified bundle use the same
source for the package of the specified class name.
This method performs the following checks: |