|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Observer
Annotation to mark observer methods.
| Optional Element Summary | |
|---|---|
boolean |
consumes
|
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 Java Scripting Framework is used to look up a script engine to evaluate 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 are named arg0, arg1, etc. for
method level conditions and arg for parameter level conditions.
Condition expression is a fragment of Java code returning boolean.
Rule instance is available through rule parameter.
public abstract Class<?>[] posts
public abstract boolean consumes
public abstract boolean oneOff
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||