core-java
core-java copied to clipboard
Use specific message types in `BlackBoxBoudedContext` API
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.