Uses of Interface
org.osgi.framework.ServiceReference
-
Packages that use ServiceReference Package Description org.apache.felix.framework org.apache.felix.framework.util org.osgi.framework Framework Package Version 1.8.org.osgi.framework.hooks.service Framework Service Hooks Package Version 1.1.org.osgi.util.tracker Tracker Package Version 1.5. -
-
Uses of ServiceReference in org.apache.felix.framework
Methods in org.apache.felix.framework that return ServiceReference Modifier and Type Method Description ServiceReference<?>[]
ServiceRegistry. getRegisteredServices(Bundle bundle)
ServiceReference<?>[]
ServiceRegistry. getServicesInUse(Bundle bundle)
Methods in org.apache.felix.framework that return types with arguments of type ServiceReference Modifier and Type Method Description <S> java.util.Set<ServiceReference<S>>
Felix. getHooks(java.lang.Class<S> hookClass)
<S> java.util.Set<ServiceReference<S>>
ServiceRegistry. getHooks(java.lang.Class<S> hookClass)
Methods in org.apache.felix.framework with parameters of type ServiceReference Modifier and Type Method Description protected void
Logger. doLog(Bundle bundle, ServiceReference sr, int level, java.lang.String msg, java.lang.Throwable throwable)
<S> S
ServiceRegistry. getService(Bundle bundle, ServiceReference<S> ref, boolean isServiceObjects)
Bundle[]
ServiceRegistry. getUsingBundles(ServiceReference<?> ref)
void
Logger. log(ServiceReference sr, int level, java.lang.String msg)
void
Logger. log(ServiceReference sr, int level, java.lang.String msg, java.lang.Throwable throwable)
boolean
FilterImpl. match(ServiceReference sr)
boolean
ServiceRegistry. ungetService(Bundle bundle, ServiceReference<?> ref, java.lang.Object svcObj)
Method parameters in org.apache.felix.framework with type arguments of type ServiceReference Modifier and Type Method Description protected void
BundleWiringImpl.BundleClassLoader. callWovenClassListeners(Felix felix, java.util.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 ServiceReference Modifier and Type Method Description static boolean
Util. 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 ServiceReference Modifier and Type Method Description void
SecureAction. invokeServiceFindHook(FindHook fh, BundleContext context, java.lang.String name, java.lang.String filter, boolean allServices, java.util.Collection<ServiceReference<?>> references)
-
Uses of ServiceReference in org.osgi.framework
Methods in org.osgi.framework that return ServiceReference Modifier and Type Method Description ServiceReference<?>[]
BundleContext. getAllServiceReferences(java.lang.String clazz, java.lang.String filter)
Returns an array ofServiceReference
objects.ServiceReference<S>
ServiceRegistration. getReference()
Returns aServiceReference
object for a service being registered.ServiceReference<?>[]
Bundle. getRegisteredServices()
Returns this bundle'sServiceReference
list for all services it has registered ornull
if this bundle has no registered services.<S> ServiceReference<S>
BundleContext. getServiceReference(java.lang.Class<S> clazz)
Returns aServiceReference
object for a service that implements and was registered under the name of the specified class.ServiceReference<?>
BundleContext. getServiceReference(java.lang.String clazz)
Returns aServiceReference
object for a service that implements and was registered under the specified class.ServiceReference<?>
ServiceEvent. getServiceReference()
Returns a reference to the service that had a change occur in its lifecycle.ServiceReference<S>
ServiceObjects. getServiceReference()
Returns theServiceReference
for the service associated with thisServiceObjects
object.ServiceReference<?>[]
BundleContext. getServiceReferences(java.lang.String clazz, java.lang.String filter)
Returns an array ofServiceReference
objects.ServiceReference<?>[]
Bundle. getServicesInUse()
Returns this bundle'sServiceReference
list for all services it is using or returnsnull
if this bundle is not using any services.Methods in org.osgi.framework that return types with arguments of type ServiceReference Modifier and Type Method Description <S> java.util.Collection<ServiceReference<S>>
BundleContext. getServiceReferences(java.lang.Class<S> clazz, java.lang.String filter)
Returns a collection ofServiceReference
objects.Methods in org.osgi.framework with parameters of type ServiceReference Modifier and Type Method Description <S> S
BundleContext. getService(ServiceReference<S> reference)
Returns the service object for the service referenced by the specifiedServiceReference
object.<S> ServiceObjects<S>
BundleContext. getServiceObjects(ServiceReference<S> reference)
Returns theServiceObjects
object for the service referenced by the specifiedServiceReference
object.boolean
Filter. match(ServiceReference<?> reference)
Filter using a service's properties.boolean
BundleContext. ungetService(ServiceReference<?> reference)
Releases the service object for the service referenced by the specifiedServiceReference
object.Constructors in org.osgi.framework with parameters of type ServiceReference Constructor Description ServiceEvent(int type, ServiceReference<?> reference)
Creates a new service event object.ServicePermission(ServiceReference<?> reference, java.lang.String actions)
Creates a new requestedServicePermission
object to be used by code that must performcheckPermission
for theget
action. -
Uses of ServiceReference in org.osgi.framework.hooks.service
Method parameters in org.osgi.framework.hooks.service with type arguments of type ServiceReference Modifier and Type Method Description void
FindHook. find(BundleContext context, java.lang.String name, java.lang.String filter, boolean allServices, java.util.Collection<ServiceReference<?>> references)
Find hook method. -
Uses of ServiceReference in org.osgi.util.tracker
Methods in org.osgi.util.tracker that return ServiceReference Modifier and Type Method Description ServiceReference<S>
ServiceTracker. getServiceReference()
Returns aServiceReference
for one of the services being tracked by thisServiceTracker
.ServiceReference<S>[]
ServiceTracker. getServiceReferences()
Return an array ofServiceReference
s for all services being tracked by thisServiceTracker
.Methods in org.osgi.util.tracker that return types with arguments of type ServiceReference Modifier and Type Method Description java.util.SortedMap<ServiceReference<S>,T>
ServiceTracker. getTracked()
Return aSortedMap
of theServiceReference
s and service objects for all services being tracked by thisServiceTracker
.Methods in org.osgi.util.tracker with parameters of type ServiceReference Modifier and Type Method Description T
ServiceTracker. addingService(ServiceReference<S> reference)
Default implementation of theServiceTrackerCustomizer.addingService
method.T
ServiceTrackerCustomizer. addingService(ServiceReference<S> reference)
A service is being added to theServiceTracker
.T
ServiceTracker. getService(ServiceReference<S> reference)
Returns the service object for the specifiedServiceReference
if the specified referenced service is being tracked by thisServiceTracker
.void
ServiceTracker. modifiedService(ServiceReference<S> reference, T service)
Default implementation of theServiceTrackerCustomizer.modifiedService
method.void
ServiceTrackerCustomizer. modifiedService(ServiceReference<S> reference, T service)
A service tracked by theServiceTracker
has been modified.void
ServiceTracker. remove(ServiceReference<S> reference)
Remove a service from thisServiceTracker
.void
ServiceTracker. removedService(ServiceReference<S> reference, T service)
Default implementation of theServiceTrackerCustomizer.removedService
method.void
ServiceTrackerCustomizer. removedService(ServiceReference<S> reference, T service)
A service tracked by theServiceTracker
has been removed.Constructors in org.osgi.util.tracker with parameters of type ServiceReference Constructor Description ServiceTracker(BundleContext context, ServiceReference<S> reference, ServiceTrackerCustomizer<S,T> customizer)
Create aServiceTracker
on the specifiedServiceReference
.
-