Skip to content
Tyler Treat edited this page Jun 15, 2013 · 1 revision

The EventPayload annotation indicates the annotated parameter of an Event-annotated method should be included as an event payload value. The annotation value is the name of the payload object to be included with the published event.

EventPayload Example

@Event
public void addUser(@EventPayload("user") User user) {
    mUserDao.save(user);
    notifyUser(user);
}

Clone this wiki locally