|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.dm.samples.annotation.SpellChecker
public class SpellChecker
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 |
---|
public SpellChecker()
Method Detail |
---|
protected void addDictionary(DictionaryService dictionary)
serviceProperties
- the dictionary OSGi service propertiesdictionary
- the new dictionaryprotected void start()
protected void stop()
protected void removeDictionary(DictionaryService dictionary)
dictionary
- public void spellcheck(String word)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |