#113 Event Driven Architecture

Adds more Javadoc and fixes checkstyle issues.
This commit is contained in:
cfarrugia
2015-11-28 15:03:22 +01:00
parent b8b94b697a
commit e1c0731f7e
9 changed files with 90 additions and 40 deletions

View File

@@ -1,8 +1,21 @@
package com.iluwatar.eda.event;
import com.iluwatar.eda.model.User;
/**
* The {@link UserUpdatedEvent} class should should be dispatched whenever a user has been updated.
* This class can be extended to contain details about the user has been updated.
* This class can be extended to contain details about the user has been updated. In this example,
* the entire {@link User} object is passed on as data with the event.
*/
public class UserUpdatedEvent extends Event {
private User user;
public UserUpdatedEvent(User user) {
this.user = user;
}
public User getUser() {
return user;
}
}