public interface CommandTargetResolver
|Modifier and Type||Method and Description|
Returns the Aggregate Identifier and optionally the expected version of the aggregate on which the given
VersionedAggregateIdentifier resolveTarget(@Nonnull CommandMessage<?> command)
commandshould be executed. The version may be
nullif no specific version is required.
command- The command from which to extract the identifier and version
VersionedAggregateIdentifierinstance reflecting the aggregate to execute the command on
IllegalArgumentException- if the command is not formatted correctly to extract this information
Copyright © 2010–2023. All rights reserved.