|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Handler
Annotation to mark reflective handler methods.
| Optional Element Summary | |
|---|---|
boolean |
consumes
|
EventHandlerBase.Mode |
mode
Handler mode. |
boolean |
oneOff
|
Class<?>[] |
posts
This optional attribute informs the bus about event types which this method posts (if any). |
int |
priority
|
String[] |
value
Condition definition has the following format [language(parameter list)://] condition expression. |
public abstract int priority
public abstract String[] value
[language(parameter list)://] condition expression. Default language is Java.
If language is not Java, then Extractor framework is used to look up a extractor provider to create extractor from the expression.
Parameter list is a comma separated list of parameter names, parameters not used in the condition expression can be omitted.
E.g. parent, child, sibling or, if child is not
used in the condition expression parent,,sibling. If parameter list is omitted, then arguments can be accessed through args array.
Handler method's declaring class instance is available through eCtx parameter.
public abstract Class<?>[] posts
public abstract boolean consumes
public abstract boolean oneOff
public abstract EventHandlerBase.Mode mode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||