2
edits
Changes
step 1
{{Ecl_activities|type=OSGi|type-repo=osgi}}
<strong>Steps for Building Bundels</strong>
<h4>1. Study the Interfaces</h4>
* [http://www.osgi.org/javadoc/r4v42/org/osgi/framework/Bundle.html Bundle]
* [http://www.osgi.org/javadoc/r4v42/org/osgi/framework/BundleContext.html BundleContext]
* [http://www.osgi.org/javadoc/r4v42/org/osgi/framework/BundleActivator.html BundleActivator]
<h4>2. Define the Bundle that provide the service (Provider Bundle)</h4>
<h5>2.1 Define the Java Interface that exposes the services</h5>
Let us suppose that you want to define a service that allows the user to find a book from the book isbn. Then the interface should look similare with this one:
<source lang="java">
package cs.ecl.osgi.simple.bookfinder;