Package | Description |
---|---|
org.osgi.framework |
Framework Package Version 1.5.
|
Modifier and Type | Method | Description |
---|---|---|
ServiceReference[] |
BundleContext.getAllServiceReferences(java.lang.String clazz,
java.lang.String filter) |
Returns an array of
ServiceReference objects. |
ServiceReference |
ServiceRegistration.getReference() |
Returns a
ServiceReference object for a service being
registered. |
ServiceReference[] |
Bundle.getRegisteredServices() |
Returns this bundle's
ServiceReference list for all
services it has registered or null if this bundle has no
registered services. |
ServiceReference |
BundleContext.getServiceReference(java.lang.String clazz) |
Returns a
ServiceReference object for a service that
implements and was registered under the specified class. |
ServiceReference |
ServiceEvent.getServiceReference() |
Returns a reference to the service that had a change occur in its
lifecycle.
|
ServiceReference[] |
BundleContext.getServiceReferences(java.lang.String clazz,
java.lang.String filter) |
Returns an array of
ServiceReference objects. |
ServiceReference[] |
Bundle.getServicesInUse() |
Returns this bundle's
ServiceReference list for all
services it is using or returns null if this bundle is not
using any services. |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
BundleContext.getService(ServiceReference reference) |
Returns the service object referenced by the specified
ServiceReference object. |
boolean |
Filter.match(ServiceReference reference) |
Filter using a service's properties.
|
boolean |
BundleContext.ungetService(ServiceReference reference) |
Releases the service object referenced by the specified
ServiceReference object. |
Constructor | Description |
---|---|
ServiceEvent(int type,
ServiceReference reference) |
Creates a new service event object.
|
ServicePermission(ServiceReference reference,
java.lang.String actions) |
Creates a new requested
ServicePermission object to be used
by code that must perform checkPermission for the
get action. |