felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r960273 - /felix/trunk/dependencymanager/samples.annotation/README
Date Sat, 03 Jul 2010 21:56:18 GMT
Author: pderop
Date: Sat Jul  3 21:56:18 2010
New Revision: 960273

URL: http://svn.apache.org/viewvc?rev=960273&view=rev
Log:
indicates that trunk version of the http.jetty bundle has to be installed. Also fixed some
mispelling in the README \!

Modified:
    felix/trunk/dependencymanager/samples.annotation/README

Modified: felix/trunk/dependencymanager/samples.annotation/README
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/samples.annotation/README?rev=960273&r1=960272&r2=960273&view=diff
==============================================================================
--- felix/trunk/dependencymanager/samples.annotation/README (original)
+++ felix/trunk/dependencymanager/samples.annotation/README Sat Jul  3 21:56:18 2010
@@ -4,26 +4,26 @@ Sample description:
 
   This sample shows a basic "SpellChecker" application which provides a Felix "spellcheck"
GOGO shell
   command. The GOGO "spellcheck" command accepts a string as parameter, which is checked
for proper 
-  existance. The SpellChecker class has a required/multiple (1..N) dependency over every
available 
+  existence. The SpellChecker class has a required/multiple (1..N) dependency over every
available 
   "DictionaryService" services, which are internally used by the SpellChecker command, when
checking 
-  word existance).
+  word existence).
   
   A DictionaryService is defined using a FactoryConfigurationAdapterService annotation, allowing
to
   instantiate many "DictionaryService" service instances from webconsole. This annotation
actually
   registers a ManagedServiceFactory into the Registry, and you can specify some meta type
   informations in the annotation, allowing to display the configuration parameters from WebConsole.

-  From WebConsole, each time you instantiate a factory configuration from the pid "Dictionary
-  Services", then a corresponding "DictionaryService" service is instantiated and is then
injected
+  Each time you instantiate a factory configuration whose factory pid is "Dictionary Services",

+  then a corresponding "DictionaryService" service is instantiated and is then injected
   into the SpellChecker service. So, before testing, you first have to go to webconsole
-  Configuration panel, and specify some dictionaries (see the DictionaryService Factory PID).
 
+  Configuration panel, and specify some dictionaries (see the "Dictionary Services" Factory
PID).  
   Then, go to the felix GOGO shell, and you will then see the "spellcheck" command (when
typing
   "help"). 
   
   Notice that in the sample, you will also find a DictionaryAspect Service (DictionaryAspect.java),
which
   decorates the EnglishDictionary service, by adding some additional words to *all* provided

   DictionaryService services. The DictionaryAspect also show how to use a ConfigurationDependency
annotation, 
-  allowing to configure the words from webconsole. A ConfigurationDependency actually registers
a ManagedService object
-  in the Registry, which also implements a MetaTypeProvider service for metatype support.
+  allowing to configure the words from webconsole. A ConfigurationDependency actually registers
a ManagedService 
+  object in the Registry, which also implements a MetaTypeProvider service for metatype support.
 
 How to test:
 
@@ -31,7 +31,7 @@ How to test:
 
      org.apache.felix.configadmin
      org.apache.felix.metatype
-     org.apache.felix.http.jetty
+     org.apache.felix.http.jetty (from trunk, because the latest released version seems to
have a problem)
      org.apache.felix.webconsole
 
      org.apache.felix.dependencymanager
@@ -40,12 +40,12 @@ How to test:
      org.apache.felix.dependencymanager.samples.annotation
 
   2) Start felix
-  3) Go to web console, in the Configuration pannel, and edit the "Dictionary Services"
+  3) Go to web console: in the Configuration pannel, edit the "Dictionary Services"
      Configuration, add some dictionaries. By default, an English dictionary is displayed.
Just 
      click on "save", then click on your refresh web browser: you will see a new dictionary
service
      instance. At this point, a DictionaryService service will be enabled (with the service
property "lang=en"),  
      and the SpellCheck component will be injected with it. Then you should see the "spellcheck"
-     command, when typing  "help" on the shell. 
+     command, when typing  "help" on the gogo shell.
 
   5) Just type "spellcheck hello", and the command should reply a fantastic message, like
"word hello is correct".
   
@@ -53,4 +53,3 @@ How to test:
      By default, the "aspect" word is pre configured, but you can click on the "+" button
in order to add more words. 
      Then click on Save. At this point, all DictionaryService instances will be decorated
with the aspect service.
      So, now, if you type "spellcheck aspect", then the message: "word aspect is correct"
should be displayed. 
-



Mime
View raw message