|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.dm.samples.annotation.DictionaryAspect
public class DictionaryAspect
This aspect applies to the English DictionaryService, and allows to decorate it with some custom English words, which are configurable from WebConsole.
Constructor Summary | |
---|---|
DictionaryAspect()
|
Method Summary | |
---|---|
boolean |
checkWord(String word)
Checks if a word is found from our custom word list. |
protected void |
start()
Our Aspect Service is starting and is about to be registered in the OSGi regsitry. |
String |
toString()
|
protected void |
updated(
Defines a configuration dependency for retrieving our english custom words (by default, our PID is our full class name). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DictionaryAspect()
Method Detail |
---|
protected void updated(config)
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 |