2015-11-23 11:20:20 +01:00
|
|
|
package com.iluwatar.eda.handler;
|
2015-11-23 00:02:58 +01:00
|
|
|
|
2015-11-23 11:20:20 +01:00
|
|
|
import com.iluwatar.eda.event.UserCreatedEvent;
|
|
|
|
import com.iluwatar.eda.framework.Channel;
|
2015-11-23 00:02:58 +01:00
|
|
|
|
|
|
|
/**
|
2015-11-28 13:12:16 +01:00
|
|
|
* Handles the {@link UserCreatedEvent} message.
|
2015-11-23 00:02:58 +01:00
|
|
|
*/
|
|
|
|
public class UserCreatedEventHandler implements Channel<UserCreatedEvent> {
|
2015-11-28 13:12:16 +01:00
|
|
|
public void dispatch(UserCreatedEvent message) {
|
|
|
|
System.out.println("User Created!");
|
|
|
|
}
|
2015-11-23 00:02:58 +01:00
|
|
|
}
|