#113 Event Driven Architecture
Adds various changes including : - Fixes to Javadoc - Test refactoring and improvements - Refactored EventDispatcher to be immutable - Removed DynamicRouter interface since it not needed - Renamed Channel to a more appropriate name - Handler
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.iluwatar.eda.event;
|
||||
|
||||
import com.iluwatar.eda.framework.EventDispatcher;
|
||||
import com.iluwatar.eda.framework.Message;
|
||||
|
||||
/**
|
||||
@@ -15,8 +16,8 @@ public class Event implements Message {
|
||||
|
||||
/**
|
||||
* Returns the event type as a {@link Class} object
|
||||
* In this example, this method is used by the {@link com.iluwatar.eda.EventDispatcher} to
|
||||
* dispatch events depending on their type.
|
||||
* In this example, this method is used by the {@link EventDispatcher} to
|
||||
* onEvent events depending on their type.
|
||||
*
|
||||
* @return the Event type as a {@link Class}.
|
||||
*/
|
||||
|
@@ -3,7 +3,7 @@ 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.
|
||||
* The {@link UserCreatedEvent} should should be dispatched whenever a 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.
|
||||
*/
|
||||
|
@@ -3,7 +3,7 @@ package com.iluwatar.eda.event;
|
||||
import com.iluwatar.eda.model.User;
|
||||
|
||||
/**
|
||||
* The {@link UserUpdatedEvent} class should should be dispatched whenever a user has been updated.
|
||||
* The {@link UserUpdatedEvent} should should be dispatched whenever a user has been updated.
|
||||
* 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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user