@@ -4,11 +4,10 @@ import com.iluwatar.eda.event.UserCreatedEvent;
|
||||
import com.iluwatar.eda.framework.Channel;
|
||||
|
||||
/**
|
||||
* Handles the {@link UserCreatedEvent} message
|
||||
* Handles the {@link UserCreatedEvent} message.
|
||||
*/
|
||||
public class UserCreatedEventHandler implements Channel<UserCreatedEvent> {
|
||||
|
||||
public void dispatch(UserCreatedEvent message) {
|
||||
System.out.println("User Created!");
|
||||
}
|
||||
public void dispatch(UserCreatedEvent message) {
|
||||
System.out.println("User Created!");
|
||||
}
|
||||
}
|
||||
|
@@ -4,11 +4,10 @@ import com.iluwatar.eda.event.UserUpdatedEvent;
|
||||
import com.iluwatar.eda.framework.Channel;
|
||||
|
||||
/**
|
||||
* Handles the {@link UserUpdatedEvent} message
|
||||
* Handles the {@link UserUpdatedEvent} message.
|
||||
*/
|
||||
public class UserUpdatedEventHandler implements Channel<UserUpdatedEvent> {
|
||||
|
||||
public void dispatch(UserUpdatedEvent message) {
|
||||
System.out.println("User Updated!");
|
||||
}
|
||||
public void dispatch(UserUpdatedEvent message) {
|
||||
System.out.println("User Updated!");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user