OSGi Service Platform
Release 4 (draft)

Uses of Interface
org.osgi.framework.ServiceReference

Packages that use ServiceReference
org.osgi.framework The OSGi Framework Package. 
org.osgi.service.cm The OSGi Configuration Admin service Package. 
org.osgi.service.component The OSGi Service Component Package. 
org.osgi.service.device The OSGi Device Access Package. 
org.osgi.service.log The OSGi Log Service Package. 
org.osgi.service.useradmin The OSGi User Admin service Package. 
org.osgi.service.wireadmin The OSGi Wire Admin service Package. 
org.osgi.util.tracker The OSGi Service Tracker Package. 
 

Uses of ServiceReference in org.osgi.framework
 

Methods in org.osgi.framework that return ServiceReference
 ServiceReference ServiceRegistration.getReference()
          Returns a ServiceReference object for a service being registered.
 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[] BundleContext.getAllServiceReferences(java.lang.String clazz, java.lang.String filter)
          Returns an array of ServiceReference objects.
 ServiceReference BundleContext.getServiceReference(java.lang.String clazz)
          Returns a ServiceReference object for a service that implements and was registered under the specified class.
 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[] 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 with parameters of type ServiceReference
 boolean Filter.match(ServiceReference reference)
          Filter using a service's properties.
 java.lang.Object BundleContext.getService(ServiceReference reference)
          Returns the specified service object for a service.
 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.
 

Uses of ServiceReference in org.osgi.service.cm
 

Methods in org.osgi.service.cm that return ServiceReference
 ServiceReference ConfigurationEvent.getReference()
          Return the ServiceReference object of the Configuration Admin service that created this event.
 

Methods in org.osgi.service.cm with parameters of type ServiceReference
 void ConfigurationPlugin.modifyConfiguration(ServiceReference reference, java.util.Dictionary properties)
          View and possibly modify the a set of configuration properties before they are sent to the Managed Service or the Managed Service Factory.
 

Constructors in org.osgi.service.cm with parameters of type ServiceReference
ConfigurationEvent(ServiceReference reference, int type, java.lang.String factoryPid, java.lang.String pid)
          Constructs a ConfigurationEvent object from the given ServiceReference object, event type, and pids.
 

Uses of ServiceReference in org.osgi.service.component
 

Methods in org.osgi.service.component that return ServiceReference
 ServiceReference ComponentContext.getServiceReference()
          If the component instance is registered as a service using the service element, then this method returns the service reference of the service provided by this component instance.
 

Methods in org.osgi.service.component with parameters of type ServiceReference
 java.lang.Object ComponentContext.locateService(java.lang.String name, ServiceReference reference)
          Returns the service object for the specified reference name and ServiceReference.
 

Uses of ServiceReference in org.osgi.service.device
 

Methods in org.osgi.service.device that return ServiceReference
 ServiceReference Match.getDriver()
          Return the reference to a Driver service.
 

Methods in org.osgi.service.device with parameters of type ServiceReference
 int DriverSelector.select(ServiceReference reference, Match[] matches)
          Select one of the matching Driver services.
 int Driver.match(ServiceReference reference)
          Checks whether this Driver service can be attached to the Device service.
 java.lang.String Driver.attach(ServiceReference reference)
          Attaches this Driver service to the Device service represented by the given ServiceReference object.
 

Uses of ServiceReference in org.osgi.service.log
 

Methods in org.osgi.service.log that return ServiceReference
 ServiceReference LogEntry.getServiceReference()
          Returns the ServiceReference object for the service associated with this LogEntry object.
 

Methods in org.osgi.service.log with parameters of type ServiceReference
 void LogService.log(ServiceReference sr, int level, java.lang.String message)
          Logs a message associated with a specific ServiceReference object.
 void LogService.log(ServiceReference sr, int level, java.lang.String message, java.lang.Throwable exception)
          Logs a message with an exception associated and a ServiceReference object.
 

Uses of ServiceReference in org.osgi.service.useradmin
 

Methods in org.osgi.service.useradmin that return ServiceReference
 ServiceReference UserAdminEvent.getServiceReference()
          Gets the ServiceReference object of the User Admin service that generated this event.
 

Constructors in org.osgi.service.useradmin with parameters of type ServiceReference
UserAdminEvent(ServiceReference ref, int type, Role role)
          Constructs a UserAdminEvent object from the given ServiceReference object, event type, and Role object.
 

Uses of ServiceReference in org.osgi.service.wireadmin
 

Methods in org.osgi.service.wireadmin that return ServiceReference
 ServiceReference WireAdminEvent.getServiceReference()
          Return the ServiceReference object of the Wire Admin service that created this event.
 

Constructors in org.osgi.service.wireadmin with parameters of type ServiceReference
WireAdminEvent(ServiceReference reference, int type, Wire wire, java.lang.Throwable exception)
          Constructs a WireAdminEvent object from the given ServiceReference object, event type, Wire object and exception.
 

Uses of ServiceReference in org.osgi.util.tracker
 

Methods in org.osgi.util.tracker that return ServiceReference
 ServiceReference[] ServiceTracker.getServiceReferences()
          Return an array of ServiceReference objects for all services being tracked by this ServiceTracker object.
 ServiceReference ServiceTracker.getServiceReference()
          Returns a ServiceReference object for one of the services being tracked by this ServiceTracker object.
 

Methods in org.osgi.util.tracker with parameters of type ServiceReference
 java.lang.Object ServiceTrackerCustomizer.addingService(ServiceReference reference)
          A service is being added to the ServiceTracker object.
 void ServiceTrackerCustomizer.modifiedService(ServiceReference reference, java.lang.Object service)
          A service tracked by the ServiceTracker object has been modified.
 void ServiceTrackerCustomizer.removedService(ServiceReference reference, java.lang.Object service)
          A service tracked by the ServiceTracker object has been removed.
 java.lang.Object ServiceTracker.addingService(ServiceReference reference)
          Default implementation of the ServiceTrackerCustomizer.addingService method.
 void ServiceTracker.modifiedService(ServiceReference reference, java.lang.Object service)
          Default implementation of the ServiceTrackerCustomizer.modifiedService method.
 void ServiceTracker.removedService(ServiceReference reference, java.lang.Object service)
          Default implementation of the ServiceTrackerCustomizer.removedService method.
 java.lang.Object ServiceTracker.getService(ServiceReference reference)
          Returns the service object for the specified ServiceReference object if the referenced service is being tracked by this ServiceTracker object.
 void ServiceTracker.remove(ServiceReference reference)
          Remove a service from this ServiceTracker object.
 

Constructors in org.osgi.util.tracker with parameters of type ServiceReference
ServiceTracker(BundleContext context, ServiceReference reference, ServiceTrackerCustomizer customizer)
          Create a ServiceTracker object on the specified ServiceReference object.
 


OSGi Service Platform
Release 4 (draft)

Copyright (c) OSGi Alliance (2000, 2005). All Rights Reserved.