core-java
core-java copied to clipboard
Do not configure multitenantcy flag in Bus builders
... take it from a BoundedContext into which the bus is inserted.
A bus cannot have a different setting. So there's no sense in the API for configuring it in a builder.
At this point it's only present in CommandBus.Builder and used later to ensure that a Command posted to a multitenant CommandBus has a tenant ID set.