Changes

Jump to: navigation, search

OSGi : Develop Simple Apps

480 bytes added, 22:37, 22 January 2011
no edit summary
}
</source>
 
Steps to find and use the service:
 
1. Look for the service reference in the bundle context:
<b>ServiceReference reference = context.getServiceReference(BookFinder.class.getName());</b>
/** The Framework returns ''ServiceReference'' objects from the ''BundleContext.getServiceReference'' method.
A ''ServiceReference'' object may be shared between bundles and can be used:
1. to examine the properties of the service
2. to get the service object. */
 
2.

Navigation menu