OSGi™ Service Platform
Core Specification

Release 4 Version 4.3

Uses of Interface
org.osgi.framework.ServiceReference

Packages that use ServiceReference
org.osgi.framework Framework Package Version 1.6. 
org.osgi.framework.hooks.service Framework Service Hooks Package Version 1.1. 
 

Uses of ServiceReference in org.osgi.framework
 

Methods in org.osgi.framework that return ServiceReference
 ServiceReference<?>[] BundleContext.getAllServiceReferences(java.lang.String clazz, java.lang.String filter)
          Returns an array of ServiceReference objects.
 ServiceReference<S> 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<?> ServiceEvent.getServiceReference()
          Returns a reference to the service that had a change occur in its lifecycle.
<S> ServiceReference<S>
BundleContext.getServiceReference(java.lang.Class<S> clazz)
          Returns a ServiceReference object for a service that implements and was registered under the name of the specified class.
 ServiceReference<?> BundleContext.getServiceReference(java.lang.String clazz)
          Returns a ServiceReference object for a service that implements and was registered under the specified class.
 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.
 

Methods in org.osgi.framework that return types with arguments of type ServiceReference
<S> java.util.Collection<ServiceReference<S>>
BundleContext.getServiceReferences(java.lang.Class<S> clazz, java.lang.String filter)
          Returns a collection of ServiceReference objects.
 

Methods in org.osgi.framework with parameters of type ServiceReference
<S> S
BundleContext.getService(ServiceReference<S> 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.
 

Constructors in org.osgi.framework with parameters of type ServiceReference
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.
 

Uses of ServiceReference in org.osgi.framework.hooks.service
 

Method parameters in org.osgi.framework.hooks.service with type arguments of type ServiceReference
 void FindHook.find(BundleContext context, java.lang.String name, java.lang.String filter, boolean allServices, java.util.Collection<ServiceReference<?>> references)
          Find hook method.
 


OSGi™ Service Platform
Core Specification

Release 4 Version 4.3

Copyright © OSGi Alliance (2000, 2012). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0