felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1664579 - /felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/annotations.mdtext
Date Fri, 06 Mar 2015 10:10:48 GMT
Author: pderop
Date: Fri Mar  6 10:10:47 2015
New Revision: 1664579

URL: http://svn.apache.org/r1664579
Log:
Fixed formatting.

Modified:
    felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/annotations.mdtext

Modified: felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/annotations.mdtext
URL: http://svn.apache.org/viewvc/felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/annotations.mdtext?rev=1664579&r1=1664578&r2=1664579&view=diff
==============================================================================
--- felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/annotations.mdtext
(original)
+++ felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/annotations.mdtext
Fri Mar  6 10:10:47 2015
@@ -227,8 +227,7 @@ First, we define an interface for descri
     import aQute.bnd.annotation.metatype.Meta.AD;
     import aQute.bnd.annotation.metatype.Meta.OCD;
 
-    @OCD(name="Spell Checker Dictionary (annotation)", factory = true,     
-         description = "Declare here some Dictionary instances, ")
+    @OCD(name="Spell Checker Dictionary (annotation)", factory = true, description = "Declare
here some Dictionary instances")         
     public interface DictionaryConfiguration {
         @AD(description = "Describes the dictionary language", deflt = "en")
         String lang();
@@ -249,11 +248,13 @@ Next, here is our DictionaryImpl that wi
     @FactoryConfigurationAdapterService(factoryPidClass = DictionaryConfiguration.class,
propagate = true, updated = "updated")
     public class DictionaryImpl implements DictionaryService {
         private final CopyOnWriteArrayList<String> m_words = new CopyOnWriteArrayList<String>();
-
+        private String m_lang;
+        
         protected void updated(Dictionary<String, ?> config) {
             if (config != null) {
-                // We use the bnd "Configurable" helper in order to get an implementation
for our DictionaryConfiguration interface.
-	        DictionaryConfiguration cnf = Configurable.createConfigurable(DictionaryConfiguration.class,
config);
+                // use bnd "Configurable" helper to get an implementation for our DictionaryConfiguration.
+	            DictionaryConfiguration cnf = 
+                   Configurable.createConfigurable(DictionaryConfiguration.class, config);
 
                 m_lang = cnf.lang();
                 m_words.clear();



Mime
View raw message