Author: buildbot
Date: Wed Oct 17 21:29:00 2018
New Revision: 1036358

Log:
Staging update by buildbot for felix

Modified:
    websites/staging/felix/trunk/content/   (props changed)
    
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/whatsnew-r12.html

Propchange: websites/staging/felix/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Oct 17 21:29:00 2018
@@ -1 +1 @@
-1844176
+1844178

Modified: 
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/whatsnew-r12.html
==============================================================================
--- 
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/whatsnew-r12.html
 (original)
+++ 
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/whatsnew-r12.html
 Wed Oct 17 21:29:00 2018
@@ -91,6 +91,7 @@ h2:hover > .headerlink, h3:hover > .head
 <p>This section describes some enhancements and API modification which have 
been performed in the dependency manager r12 release.
 Mainly,</p>
 <ul>
+<li>Support for Java 9/10/11</li>
 <li>annotation API has been simplified</li>
 <li>support for user-defined annotation property types</li>
 <li>DM API has been reworked to simplify the definition of aspect and 
adapters.</li>
@@ -267,7 +268,7 @@ Example:</p>
 <li>Since some incompatible changes have been made, the major version of the 
annotation bundle has been bumped to 5.0.0.</li>
 </ul>
 <h3 id="not-backward-compatible-annotation-changes">Not backward compatible 
annotation changes<a class="headerlink" 
href="#not-backward-compatible-annotation-changes" title="Permanent 
link">&para;</a></h3>
-<p>This sections describes what has been removed in the annotation api:</p>
+<p>The following has been removed in the annotation api:</p>
 <ul>
 <li>removed FactoryConfigurationAdapterService annotation, which was too 
verbose. when you need to define some factory pid component, just reuse the 
@Component annotation and declare the new factoryPid/propagate/updated 
attributes that have been added in the @Component annotation</li>
 <li>Removed PropertyMetadata annotation: it was related to metatypes, but as 
of today, osgi metatypes can be defined using standard metatype annotations. No 
need to support this anymore.</li>
@@ -276,8 +277,20 @@ Example:</p>
 <li>Removed PropertyMetaData annotation, which was related to osgi metatype. 
Simply use standard metatype annotation.</li>
 <li>propagated configuration dependencies are now taking precedence over 
component service properties, meaning that a component is defined with some 
service properties, then the service properties which are also found from the 
propagated configuration will be overriden (by the configuration 
properties)</li>
 </ul>
+<p>When using Java 9 / 10 / 11, then you can't use fluent service properties 
with dm-lambda, because in these new jdk version, the -parameters option does 
not generate anymore the lambda parameters metadata.
+So, the following example won't work <strong>using jdk 9/10/11</strong> (but 
still works using Java 8):</p>
+<div class="codehilite"><pre><span class="n">component</span><span 
class="o">(</span><span class="n">comp</span> <span class="o">-&gt;</span> 
<span class="n">comp</span><span class="o">.</span><span 
class="na">impl</span><span class="o">(</span><span class="n">Foo</span><span 
class="o">.</span><span class="na">class</span><span class="o">).</span><span 
class="na">provides</span><span class="o">(</span><span 
class="n">FooService</span><span class="o">.</span><span 
class="na">class</span><span class="o">,</span> <span class="n">property</span> 
<span class="o">-&gt;</span> <span class="s">&quot;service property 
value&quot;</span><span class="o">));</span>
+</pre></div>
+
+
+<p>With Java 9/10/11, use this instead:</p>
+<div class="codehilite"><pre><span class="n">component</span><span 
class="o">(</span><span class="n">comp</span> <span class="o">-&gt;</span> 
<span class="n">comp</span><span class="o">.</span><span 
class="na">impl</span><span class="o">(</span><span class="n">Foo</span><span 
class="o">.</span><span class="na">class</span><span class="o">).</span><span 
class="na">provides</span><span class="o">(</span><span 
class="n">FooService</span><span class="o">.</span><span 
class="na">class</span><span class="o">,</span> <span 
class="s">&quot;property&quot;</span><span class="o">,</span> <span 
class="s">&quot;service property value&quot;</span><span class="o">));</span>
+</pre></div>
+
+
+<p>The fluent service properties using lambda expression maybe removed in 
future DM version if a solution is not found to make it working with Java 
9/10/11</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; 
text-align: right;">
-        Rev. 1843681 by pderop on Fri, 12 Oct 2018 15:32:42 +0000
+        Rev. 1844178 by pderop on Wed, 17 Oct 2018 21:28:42 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Felix, Felix, Apache, the Apache feather logo, and the Apache 
Felix project


Reply via email to