core-java icon indicating copy to clipboard operation
core-java copied to clipboard

Use specific message types in `BlackBoxBoudedContext` API

Open alexander-yevsyukov opened this issue 6 years ago • 0 comments

Methods like receivesCommand(), receivesCommands(), importsEven(), importsEvents() should receive specific message types.

There can be methods that accept Command or Event, but since they cannot be casted to CommandMessage or EventMessage, such overloading would look obvious.

alexander-yevsyukov avatar Dec 01 '18 00:12 alexander-yevsyukov