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 ofServiceReferenceobjects.ServiceRegistration.getReference()Returns aServiceReferenceobject for a service being registered.Bundle.getRegisteredServices()Returns this bundle'sServiceReferencelist for all services it has registered ornullif this bundle has no registered services.BundleContext.getServiceReference(String clazz) Returns aServiceReferenceobject 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 ofServiceReferenceobjects.Bundle.getServicesInUse()Returns this bundle'sServiceReferencelist for all services it is using or returnsnullif 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 specifiedServiceReferenceobject.booleanFilter.match(ServiceReference reference) Filter using a service's properties.booleanBundleContext.ungetService(ServiceReference reference) Releases the service object referenced by the specifiedServiceReferenceobject.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 requestedServicePermissionobject to be used by code that must performcheckPermissionfor thegetaction.