|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.dm.samples.annotation.DictionaryImpl
public class DictionaryImpl
A Dictionary Service. This service uses a FactoryConfigurationAdapterService annotation, allowing to instantiate this service from webconsole. This annotation will actually register a ManagedServiceFactory in the registry, and also supports meta types for configuring this service from WebConsole. You must configure at least one Dictionary from web console, since the SpellCheck won't start if no Dictionary Service is available.
Constructor Summary | |
---|---|
DictionaryImpl()
|
Method Summary | |
---|---|
boolean |
checkWord(String word)
Check if a word exists if the list of words we have been configured from ConfigAdmin/WebConsole. |
protected void |
start()
A new Dictionary Service is starting (because a new factory configuration has been created from webconsole). |
String |
toString()
|
protected void |
updated(
Our service will be initialized from ConfigAdmin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DictionaryImpl()
Method Detail |
---|
protected void updated(config)
config
- The configuration where we'll lookup our words list (key=".words").protected void start()
public boolean checkWord(String word)
checkWord
in interface DictionaryService
word
- the word to be checked.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |