This pull request defaults the ServiceInstance of the AbstractCapabilityDiscoveryMode to a private ServiceInstance with a fixed URI.
Doing so, we prevent a scenario when the CapabilityDiscoveryMode#updateLocalCapabilities is never invoked, leading to a nullServiceInstance.
Preventing this scenario ensures that Axon Framework instances that have zero command handlers will not fail on the "is this the local node I am asking capabilities for"-check, when retrieving the capabilities of other instances.
This pull request defaults the
ServiceInstance
of theAbstractCapabilityDiscoveryMode
to a privateServiceInstance
with a fixedURI
.Doing so, we prevent a scenario when the
CapabilityDiscoveryMode#updateLocalCapabilities
is never invoked, leading to anull
ServiceInstance
. Preventing this scenario ensures that Axon Framework instances that have zero command handlers will not fail on the "is this the local node I am asking capabilities for"-check, when retrieving the capabilities of other instances.This pull request resolves #327