2015-11-23 11:20:20 +01:00
|
|
|
package com.iluwatar.eda.event;
|
|
|
|
|
2015-11-28 15:03:22 +01:00
|
|
|
import com.iluwatar.eda.model.User;
|
|
|
|
|
2015-11-28 13:12:16 +01:00
|
|
|
/**
|
|
|
|
* The {@link UserUpdatedEvent} class should should be dispatched whenever a user has been updated.
|
2015-11-28 15:03:22 +01:00
|
|
|
* 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.
|
2015-11-28 13:12:16 +01:00
|
|
|
*/
|
2015-11-23 11:20:20 +01:00
|
|
|
public class UserUpdatedEvent extends Event {
|
2015-11-28 15:03:22 +01:00
|
|
|
|
|
|
|
private User user;
|
|
|
|
|
|
|
|
public UserUpdatedEvent(User user) {
|
|
|
|
this.user = user;
|
|
|
|
}
|
|
|
|
|
|
|
|
public User getUser() {
|
|
|
|
return user;
|
|
|
|
}
|
2015-11-23 11:20:20 +01:00
|
|
|
}
|