#113 Event Driven Architecture
Adds more Javadoc and fixes checkstyle issues.
This commit is contained in:
event-driven-architecture
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user