Open main menu

CDOT Wiki β

Changes

OSGi : Develop Simple Apps

6 bytes removed, 22:50, 22 January 2011
no edit summary
<b>ServiceReference reference = context.getServiceReference(BookFinder.class.getName());</b>
 
 
2. Look for the service object referenced by the specified ''ServiceReference'' object, namely the ''reference'' variable obtained at the first step.
if (reference != null)
<b> finderService = (BookFinder) context.getService(reference);</b>