Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ae2ce6

Browse filesBrowse files
altaiezioriluwatar
authored andcommitted
Resolves checkstyle errors for event-* (iluwatar#1070)
* Reduces checkstyle errors in event-aggregator * Reduces checkstyle errors in event-asynchronous * Reduces checkstyle errors in event-driven-architecture * Reduces checkstyle errors in event-queue * Reduces checkstyle errors in event-sourcing
1 parent 7c888e8 commit 5ae2ce6
Copy full SHA for 5ae2ce6

File tree

Expand file treeCollapse file tree

38 files changed

+208
-229
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

38 files changed

+208
-229
lines changed
Open diff view settings
Collapse file

‎event-aggregator/src/main/java/com/iluwatar/event/aggregator/App.java‎

Copy file name to clipboardExpand all lines: event-aggregator/src/main/java/com/iluwatar/event/aggregator/App.java
+8-10Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,22 @@
2727
import java.util.List;
2828

2929
/**
30-
*
3130
* A system with lots of objects can lead to complexities when a client wants to subscribe to
3231
* events. The client has to find and register for each object individually, if each object has
3332
* multiple events then each event requires a separate subscription.
34-
* <p>
35-
* An Event Aggregator acts as a single source of events for many objects. It registers for all the
36-
* events of the many objects allowing clients to register with just the aggregator.
37-
* <p>
38-
* In the example {@link LordBaelish}, {@link LordVarys} and {@link Scout} deliver events to
39-
* {@link KingsHand}. {@link KingsHand}, the event aggregator, then delivers the events to
40-
* {@link KingJoffrey}.
4133
*
34+
* <p>An Event Aggregator acts as a single source of events for many objects. It registers for all
35+
* the events of the many objects allowing clients to register with just the aggregator.
36+
*
37+
* <p>In the example {@link LordBaelish}, {@link LordVarys} and {@link Scout} deliver events to
38+
* {@link KingsHand}. {@link KingsHand}, the event aggregator, then delivers the events to {@link
39+
* KingJoffrey}.
4240
*/
4341
public class App {
4442

4543
/**
46-
* Program entry point
47-
*
44+
* Program entry point.
45+
*
4846
* @param args command line args
4947
*/
5048
public static void main(String[] args) {
Collapse file

‎event-aggregator/src/main/java/com/iluwatar/event/aggregator/Event.java‎

Copy file name to clipboardExpand all lines: event-aggregator/src/main/java/com/iluwatar/event/aggregator/Event.java
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* Event enumeration.
29-
*
3028
*/
3129
public enum Event {
3230

Collapse file

‎event-aggregator/src/main/java/com/iluwatar/event/aggregator/EventEmitter.java‎

Copy file name to clipboardExpand all lines: event-aggregator/src/main/java/com/iluwatar/event/aggregator/EventEmitter.java
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
import java.util.List;
2828

2929
/**
30-
*
3130
* EventEmitter is the base class for event producers that can be observed.
32-
*
3331
*/
3432
public abstract class EventEmitter {
3533

Collapse file

‎event-aggregator/src/main/java/com/iluwatar/event/aggregator/EventObserver.java‎

Copy file name to clipboardExpand all lines: event-aggregator/src/main/java/com/iluwatar/event/aggregator/EventObserver.java
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* Observers of events implement this interface.
29-
*
3028
*/
3129
public interface EventObserver {
3230

Collapse file

‎event-aggregator/src/main/java/com/iluwatar/event/aggregator/KingJoffrey.java‎

Copy file name to clipboardExpand all lines: event-aggregator/src/main/java/com/iluwatar/event/aggregator/KingJoffrey.java
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
import org.slf4j.LoggerFactory;
2828

2929
/**
30-
*
3130
* KingJoffrey observes events from {@link KingsHand}.
32-
*
3331
*/
3432
public class KingJoffrey implements EventObserver {
3533

Collapse file

‎event-aggregator/src/main/java/com/iluwatar/event/aggregator/KingsHand.java‎

Copy file name to clipboardExpand all lines: event-aggregator/src/main/java/com/iluwatar/event/aggregator/KingsHand.java
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* KingsHand observes events from multiple sources and delivers them to listeners.
29-
*
3028
*/
3129
public class KingsHand extends EventEmitter implements EventObserver {
3230

Collapse file

‎event-aggregator/src/main/java/com/iluwatar/event/aggregator/LordBaelish.java‎

Copy file name to clipboardExpand all lines: event-aggregator/src/main/java/com/iluwatar/event/aggregator/LordBaelish.java
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* LordBaelish produces events.
29-
*
3028
*/
3129
public class LordBaelish extends EventEmitter {
3230

Collapse file

‎event-aggregator/src/main/java/com/iluwatar/event/aggregator/LordVarys.java‎

Copy file name to clipboardExpand all lines: event-aggregator/src/main/java/com/iluwatar/event/aggregator/LordVarys.java
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* LordVarys produces events.
29-
*
3028
*/
3129
public class LordVarys extends EventEmitter {
3230

Collapse file

‎event-aggregator/src/main/java/com/iluwatar/event/aggregator/Scout.java‎

Copy file name to clipboardExpand all lines: event-aggregator/src/main/java/com/iluwatar/event/aggregator/Scout.java
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* Scout produces events.
29-
*
3028
*/
3129
public class Scout extends EventEmitter {
3230

Collapse file

‎event-aggregator/src/main/java/com/iluwatar/event/aggregator/Weekday.java‎

Copy file name to clipboardExpand all lines: event-aggregator/src/main/java/com/iluwatar/event/aggregator/Weekday.java
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
28-
* Weekday enumeration
29-
*
27+
* Weekday enumeration.
3028
*/
3129
public enum Weekday {
3230

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.