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

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