Open main menu

CDOT Wiki β

Changes

OSGi : Develop Simple Apps

258 bytes added, 23:03, 22 January 2011
no edit summary
if (reference != null)
<b> finderService = (BookFinder) context.getService(reference);</b>
 
3. If the service reference is valid, invoke its services and <b>release the service object</b> referenced by the specified ''ServiceReference'' object.
if (finderService != null) {
// invoke the services
<b>context.ungetService(reference);</b>
}