Author: buildbot
Date: Fri Sep 13 16:16:25 2013
New Revision: 878307
Log:
Staging update by buildbot for felix
Modified:
websites/staging/felix/trunk/content/ (props changed)
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/apache-felix-scr-bndtools-use.html
Propchange: websites/staging/felix/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Sep 13 16:16:25 2013
@@ -1 +1 @@
-1522998
+1523000
Modified:
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/apache-felix-scr-bndtools-use.html
==============================================================================
---
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/apache-felix-scr-bndtools-use.html
(original)
+++
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/apache-felix-scr-bndtools-use.html
Fri Sep 13 16:16:25 2013
@@ -94,70 +94,19 @@ For now, the plugin is not yet released,
<p><strong>Configure the default BndTools plugin path</strong>:</p>
<p>In order to let BndTools load the SCR annotations bnd plugin, you can
configure the default BndTools plugin path:</p>
-<ul>
-<li>In BndTools menu, click on "BndTools Open ext/pluginpaths.bnd", then click
on "Source"</li>
-<li>
-<p>And append the SCR bnd plugin
(${plugin-dir}/org.apache.felix.scr.bnd/org.apache.felix.scr.bnd-X.Y.Z-SNAPSHOT.jar)
to the current plugin path.
+<p>In BndTools menu, click on "BndTools Open ext/pluginpaths.bnd", then click
on "Source"
+And append the SCR bnd plugin
(${plugin-dir}/org.apache.felix.scr.bnd/org.apache.felix.scr.bnd-X.Y.Z-SNAPSHOT.jar)
to the current plugin path.
For example:</p>
-<p>-pluginpath:
${plugin-dir}/biz.aQute.repository/biz.aQute.repository-2.1.0.jar, \</p>
-<div class="codehilite"><pre> <span class="cp">${</span><span
class="n">plugin</span><span class="o">-</span><span class="nb">dir</span><span
class="cp">}</span>/org.apache.felix.scr.bnd/org.apache.felix.scr.bnd-1.0.0-SNAPSHOT.jar
+<div class="codehilite"><pre>-pluginpath: <span class="cp">${</span><span
class="n">plugin</span><span class="o">-</span><span class="nb">dir</span><span
class="cp">}</span>/biz.aQute.repository/biz.aQute.repository-2.1.0.jar, \
+ <span class="cp">${</span><span class="n">plugin</span><span
class="o">-</span><span class="nb">dir</span><span
class="cp">}</span>/org.apache.felix.scr.bnd/org.apache.felix.scr.bnd-1.0.0-SNAPSHOT.jar
</pre></div>
-</li>
-</ul>
<p>You have installed the SCR annotations bnd plugin in Eclipse BndTools, and
you can now start using it (see the following Tutorial).</p>
<h2 id="tutorial">Tutorial</h2>
-<p>In this tutorial, we'll create a "greeting" project, which provides a
simple Greeting service with a "sayHello" method, and the
-implementation will use the Apache Felix SCR annotations:</p>
-<ul>
-<li>From the File menu, select New -> Bndtools OSGi Project for creating an
empty project, and call it "greeting".</li>
-<li>
-<p>Click on bnd.bnd file of the greeting project, then click on Source, and
add the following (and then save the file)</p>
-<p>-buildpath:
${plugin-dir}/org.apache.felix.scr.bnd/org.apache.felix.scr.bnd-1.0.0-SNAPSHOT.jar;version=file</p>
-<p>-plugin: org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin</p>
-<p>Private-Package: greeting.impl</p>
-<p>Export-Package: greeting.api</p>
-</li>
-<li>
-<p>Create the greeting.api.Greeting interface:</p>
-<p>package greeting.api;</p>
-<p>public interface Greeting {
- void sayHello(String name);
-}</p>
-</li>
-<li>
-<p>Create the greeting.impl.GreetingImpl class:</p>
-<p>package greeting.impl;</p>
-<p>import greeting.api.Greeting;
-import org.apache.felix.scr.annotations.Activate;
-import org.apache.felix.scr.annotations.Component;
-import org.apache.felix.scr.annotations.Service;</p>
-<p>@Component(immediate=true)
-@Service
-public class GreetingImpl implements Greeting {
- @Activate
- private void start() {
- System.out.println("Starting Greeting Service");
- }</p>
-<div class="codehilite"><pre><span class="p">@</span><span
class="n">Override</span>
-<span class="n">public</span> <span class="n">void</span> <span
class="n">sayHello</span><span class="p">(</span><span class="n">String</span>
<span class="n">name</span><span class="p">)</span> <span class="p">{</span>
- <span class="n">System</span><span class="p">.</span><span
class="n">out</span><span class="p">.</span><span class="n">println</span><span
class="p">(</span>"<span class="n">Hello</span> " <span
class="o">+</span> <span class="n">name</span><span class="p">);</span>
-<span class="p">}</span>
-</pre></div>
-
-
-<p>}</p>
-</li>
-<li>
-<p>Now, click on bnd.bnd and rebuild the project. you have created your first
bndtools project using SCR annotations. </p>
-</li>
-<li>Create a Run descriptor (call it "run") with Apache Felix 4 With Gogo
Shell.</li>
-<li>In Run requirement, add the greeting project, as well as Apache Felix SCR
from Bnd HUB.</li>
-<li>Then Run the project: you should see in the console the "Starting Greeting
Service" message displayed from the start() method.</li>
-</ul>
+<p>TBD</p>
<div class="timestamp" style="margin-top: 30px; font-size: 80%;
text-align: right;">
- Rev. 1522998 by pderop on Fri, 13 Sep 2013 16:10:38 +0000
+ Rev. 1523000 by pderop on Fri, 13 Sep 2013 16:16:17 +0000
</div>
<div class="trademarkFooter">
Apache Felix, Felix, Apache, the Apache feather logo, and the Apache
Felix project