User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

query_all_osgi_services [2015/05/07 14:47] (current)
mihael created
Line 1: Line 1:
 +====== Query all OSGi Services ======
 +Once in a while you may need to query all currently registered services in the OSGi container. This can be achieved by using the BundleContext class.
 +  ServiceReference<?>​[] references = bundleContext.getAllServiceReferences(null,​ null);
 +{{tag>​java osgi}}
query_all_osgi_services.txt ยท Last modified: 2015/05/07 14:47 by mihael