Filtering events in the Java api is done by annotating the method with
an EventHandler.Capability decorator. For example:
@Override
@EventHandler.Capability(
filter="\\[\\[.*\\]\\]",
contexts={Context.ROOT}
)
public void onDocumentChanged(DocumentChangedEvent event) {
// No-op.
}
Thanks,
-joe
On Thu, Mar 11, 2010 at 2:40 AM, Fraser <[email protected]> wrote:
> I'm a bit unsure how to implement the filtering of events with the new
> API in Java?
>
>
> http://code.google.com/apis/wave/extensions/robots/events.html#EventFiltering
>
> Are there any examples of how to do this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Wave API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-wave-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-wave-api?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-wave-api?hl=en.