Uses of Interface
org.osgi.framework.ServiceReference
Packages that use ServiceReference
Package
Description
Framework Package Version 1.8.
Framework Service Hooks Package Version 1.1.
Tracker Package Version 1.5.
- 
Uses of ServiceReference in org.apache.felix.framework
Methods in org.apache.felix.framework that return ServiceReferenceModifier and TypeMethodDescriptionServiceReference<?>[]ServiceRegistry.getRegisteredServices(Bundle bundle) ServiceReference<?>[]ServiceRegistry.getServicesInUse(Bundle bundle) Methods in org.apache.felix.framework that return types with arguments of type ServiceReferenceMethods in org.apache.felix.framework with parameters of type ServiceReferenceModifier and TypeMethodDescriptionprotected voidLogger.doLog(Bundle bundle, ServiceReference sr, int level, String msg, Throwable throwable) <S> SServiceRegistry.getService(Bundle bundle, ServiceReference<S> ref, boolean isServiceObjects) Bundle[]ServiceRegistry.getUsingBundles(ServiceReference<?> ref) final voidLogger.log(ServiceReference sr, int level, String msg) final voidLogger.log(ServiceReference sr, int level, String msg, Throwable throwable) booleanFilterImpl.match(ServiceReference sr) booleanServiceRegistry.ungetService(Bundle bundle, ServiceReference<?> ref, Object svcObj) Method parameters in org.apache.felix.framework with type arguments of type ServiceReferenceModifier and TypeMethodDescriptionprotected voidBundleWiringImpl.BundleClassLoader.callWovenClassListeners(Felix felix, Set<ServiceReference<WovenClassListener>> wovenClassListeners, WovenClass wovenClass)  - 
Uses of ServiceReference in org.apache.felix.framework.util
Methods in org.apache.felix.framework.util with parameters of type ServiceReferenceModifier and TypeMethodDescriptionstatic booleanUtil.isServiceAssignable(Bundle requester, ServiceReference ref) This method determines if the requesting bundle is able to cast the specified service reference based on class visibility rules of the underlying modules.Method parameters in org.apache.felix.framework.util with type arguments of type ServiceReferenceModifier and TypeMethodDescriptionvoidSecureAction.invokeServiceFindHook(FindHook fh, BundleContext context, String name, String filter, boolean allServices, Collection<ServiceReference<?>> references)  - 
Uses of ServiceReference in org.osgi.framework
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 TypeMethodDescription<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.booleanBundleContext.ungetService(ServiceReference<?> reference) Releases the service object for the service 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. - 
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. - 
Uses of ServiceReference in org.osgi.util.tracker
Methods in org.osgi.util.tracker that return ServiceReferenceModifier and TypeMethodDescriptionServiceTracker.getServiceReference()Returns aServiceReferencefor one of the services being tracked by thisServiceTracker.ServiceTracker.getServiceReferences()Return an array ofServiceReferences for all services being tracked by thisServiceTracker.Methods in org.osgi.util.tracker that return types with arguments of type ServiceReferenceModifier and TypeMethodDescriptionServiceTracker.getTracked()Return aSortedMapof theServiceReferences and service objects for all services being tracked by thisServiceTracker.Methods in org.osgi.util.tracker with parameters of type ServiceReferenceModifier and TypeMethodDescriptionServiceTracker.addingService(ServiceReference<S> reference) Default implementation of theServiceTrackerCustomizer.addingServicemethod.ServiceTrackerCustomizer.addingService(ServiceReference<S> reference) A service is being added to theServiceTracker.ServiceTracker.getService(ServiceReference<S> reference) Returns the service object for the specifiedServiceReferenceif the specified referenced service is being tracked by thisServiceTracker.voidServiceTracker.modifiedService(ServiceReference<S> reference, T service) Default implementation of theServiceTrackerCustomizer.modifiedServicemethod.voidServiceTrackerCustomizer.modifiedService(ServiceReference<S> reference, T service) A service tracked by theServiceTrackerhas been modified.voidServiceTracker.remove(ServiceReference<S> reference) Remove a service from thisServiceTracker.voidServiceTracker.removedService(ServiceReference<S> reference, T service) Default implementation of theServiceTrackerCustomizer.removedServicemethod.voidServiceTrackerCustomizer.removedService(ServiceReference<S> reference, T service) A service tracked by theServiceTrackerhas been removed.Constructors in org.osgi.util.tracker with parameters of type ServiceReferenceModifierConstructorDescriptionServiceTracker(BundleContext context, ServiceReference<S> reference, ServiceTrackerCustomizer<S, T> customizer) Create aServiceTrackeron the specifiedServiceReference.