Uses of Interface
org.osgi.framework.ServiceReference
Packages that use ServiceReference
-
Uses of ServiceReference in org.osgi.framework
Methods in org.osgi.framework that return ServiceReferenceModifier and TypeMethodDescriptionBundleContext.getAllServiceReferences
(String clazz, String filter) Returns an array ofServiceReference
objects.ServiceRegistration.getReference()
Returns aServiceReference
object for a service being registered.Bundle.getRegisteredServices()
Returns this bundle'sServiceReference
list for all services it has registered ornull
if this bundle has no registered services.BundleContext.getServiceReference
(String clazz) Returns aServiceReference
object for a service that implements and was registered under the specified class.ServiceEvent.getServiceReference()
Returns a reference to the service that had a change occur in its lifecycle.BundleContext.getServiceReferences
(String clazz, String filter) Returns an array ofServiceReference
objects.Bundle.getServicesInUse()
Returns this bundle'sServiceReference
list for all services it is using or returnsnull
if this bundle is not using any services.Methods in org.osgi.framework with parameters of type ServiceReferenceModifier and TypeMethodDescriptionBundleContext.getService
(ServiceReference reference) Returns the service object referenced by the specifiedServiceReference
object.boolean
Filter.match
(ServiceReference reference) Filter using a service's properties.boolean
BundleContext.ungetService
(ServiceReference reference) Releases the service object referenced by the specifiedServiceReference
object.Constructors in org.osgi.framework with parameters of type ServiceReferenceModifierConstructorDescriptionServiceEvent
(int type, ServiceReference reference) Creates a new service event object.ServicePermission
(ServiceReference reference, String actions) Creates a new requestedServicePermission
object to be used by code that must performcheckPermission
for theget
action.