Uses of Interface
org.osgi.framework.ServiceReference
Packages that use ServiceReference
Package
Description
Framework Package Version 1.10.
Framework Service Hooks Package Version 1.1.
-
Uses of ServiceReference in org.osgi.framework
Fields in org.osgi.framework declared as ServiceReferenceModifier and TypeFieldDescriptionprivate final ServiceReference<?> FilterImpl.ServiceReferenceMap.referenceprivate final ServiceReference<?> ServiceEvent.referenceReference to the service that had a change occur in its lifecycle.private final ServiceReference<?> ServicePermission.Properties.service(package private) final ServiceReference<?> ServicePermission.serviceThe service used by this ServicePermission.Methods in org.osgi.framework that return ServiceReferenceModifier and TypeMethodDescriptionServiceReference<?>[]BundleContext.getAllServiceReferences(String clazz, String filter) Returns an array ofServiceReferenceobjects.ServiceRegistration.getReference()Returns aServiceReferenceobject for a service being registered.ServiceReference<?>[]Bundle.getRegisteredServices()Returns this bundle'sServiceReferencelist for all services it has registered ornullif this bundle has no registered services.<S> ServiceReference<S> BundleContext.getServiceReference(Class<S> clazz) Returns aServiceReferenceobject for a service that implements and was registered under the name of the specified class.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.ServiceObjects.getServiceReference()Returns theServiceReferencefor the service associated with thisServiceObjectsobject.ServiceReference<?>[]BundleContext.getServiceReferences(String clazz, String filter) Returns an array ofServiceReferenceobjects.ServiceReference<?>[]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 that return types with arguments of type ServiceReferenceModifier and TypeMethodDescription<S> Collection<ServiceReference<S>> BundleContext.getServiceReferences(Class<S> clazz, String filter) Returns a collection ofServiceReferenceobjects.Methods in org.osgi.framework with parameters of type ServiceReferenceModifier and TypeMethodDescriptionprivate static StringServicePermission.createName(ServiceReference<?> reference) Create a permission name from a ServiceReference<S> SBundleContext.getService(ServiceReference<S> reference) Returns the service object for the service referenced by the specifiedServiceReferenceobject.<S> ServiceObjects<S> BundleContext.getServiceObjects(ServiceReference<S> reference) Returns theServiceObjectsobject for the service referenced by the specifiedServiceReferenceobject.booleanFilter.match(ServiceReference<?> reference) Filter using a service's properties.booleanFilterImpl.match(ServiceReference<?> reference) Filter using a service's properties.booleanBundleContext.ungetService(ServiceReference<?> reference) Releases the service object for the service referenced by the specifiedServiceReferenceobject.Constructors in org.osgi.framework with parameters of type ServiceReferenceModifierConstructorDescription(package private)Properties(Map<String, Object> properties, ServiceReference<?> service) ServiceEvent(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.(package private)ServiceReferenceMap(ServiceReference<?> reference) -
Uses of ServiceReference in org.osgi.framework.hooks.service
Method parameters in org.osgi.framework.hooks.service with type arguments of type ServiceReferenceModifier and TypeMethodDescriptionvoidFindHook.find(BundleContext context, String name, String filter, boolean allServices, Collection<ServiceReference<?>> references) Find hook method.