You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by bu...@apache.org on 2014/03/12 09:46:22 UTC

svn commit: r901235 - in /websites/staging/felix/trunk/content: ./ documentation/faqs/apache-felix-scr-plugin-faq.html

Author: buildbot
Date: Wed Mar 12 08:46:22 2014
New Revision: 901235

Log:
Staging update by buildbot for felix

Modified:
    websites/staging/felix/trunk/content/   (props changed)
    websites/staging/felix/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.html

Propchange: websites/staging/felix/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Mar 12 08:46:22 2014
@@ -1 +1 @@
-1576638
+1576639

Modified: websites/staging/felix/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.html
==============================================================================
--- websites/staging/felix/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.html (original)
+++ websites/staging/felix/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.html Wed Mar 12 08:46:22 2014
@@ -70,6 +70,7 @@
       <h1>Apache Felix SCR Plugin Frequently Asked Questions</h1>
       <div class="toc">
 <ul>
+<li><a href="#why-are-the-standard-annotations-not-processed">Why are the (standard) annotations not processed?</a></li>
 <li><a href="#syntax-error-when-enums-are-used">Syntax Error when Enums are used?</a></li>
 <li><a href="#noclassdeffounderror-during-build">NoClassDefFoundError during build</a></li>
 </ul>
@@ -77,6 +78,8 @@
 <p>This page provides answers to frequently asked questions using the Maven
 SCR Plugin. See <a href="/documentation/subprojects/apache-felix-maven-scr-plugin.html">Apache Felix Maven SCR Plugin</a>
 for documentation on that plugin.</p>
+<h2 id="why-are-the-standard-annotations-not-processed">Why are the (standard) annotations not processed?</h2>
+<p>In order to process any annotations, a processor for them needs to be added as a dependency to your project. There are currently two different processors, one for the annotations defined within the Apache Felix project and another one for the standard annotations from the Declarative Services specification.</p>
 <h2 id="syntax-error-when-enums-are-used">Syntax Error when Enums are used?</h2>
 <p>During a SCR plugin run, a syntax error might occur if enums are used in the source code. This is a know problem of the used QDox version that reads the Java source files. Usually this happens when an enum is used inline and does not end with a ";". So adding this character should solve the problem:</p>
 <div class="codehilite"><pre><span class="kd">public</span> <span class="kd">interface</span> <span class="nc">MyTest</span> <span class="o">{</span>
@@ -124,7 +127,7 @@ In both cases, the scanned classes have 
 
 <p>or in the special case of slf4j, using slf4j API 1.6 or higher solves the problem as well</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1482228 by cziegeler on Tue, 14 May 2013 06:48:44 +0000
+        Rev. 1576639 by cziegeler on Wed, 12 Mar 2014 08:46:12 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Felix, Felix, Apache, the Apache feather logo, and the Apache Felix project