org.apache.felix.dm.samples.annotation
Class SpellChecker

java.lang.Object
  extended by org.apache.felix.dm.samples.annotation.SpellChecker

public class SpellChecker
extends Object

Felix "spellcheck" Gogo Shell Command. This command allows to check if some given words are valid or not. This command will be activated only if (at least) one DictionaryService has been injected. To create a Dictionary Service, you have to go the the web console and define a "Dictionary Services" factory configuration instance, which will fire an instantiation of the corresponding dictionary service.


Constructor Summary
SpellChecker()
           
 
Method Summary
protected  void addDictionary(DictionaryService dictionary)
          Inject a dictionary into this service.
protected  void removeDictionary(DictionaryService dictionary)
          Remove a dictionary from our service.
 void spellcheck(String word)
           
protected  void start()
          Lifecycle method callback, used to check if our service has been activated.
protected  void stop()
          Lifecycle method callback, used to check if our service has been activated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpellChecker

public SpellChecker()
Method Detail

addDictionary

protected void addDictionary(DictionaryService dictionary)
Inject a dictionary into this service.

Parameters:
serviceProperties - the dictionary OSGi service properties
dictionary - the new dictionary

start

protected void start()
Lifecycle method callback, used to check if our service has been activated.


stop

protected void stop()
Lifecycle method callback, used to check if our service has been activated.


removeDictionary

protected void removeDictionary(DictionaryService dictionary)
Remove a dictionary from our service.

Parameters:
dictionary -

spellcheck

public void spellcheck(String word)


Copyright © 2011 Apache Software Foundation. All Rights Reserved.