public interface CommandTargetResolver
Modifier and Type | Method and Description |
---|---|
VersionedAggregateIdentifier |
resolveTarget(CommandMessage<?> command)
Returns the Aggregate Identifier and optionally the expected version of the aggregate on which the given
command should be executed. |
VersionedAggregateIdentifier resolveTarget(CommandMessage<?> command)
command
should be executed. The version may be null
if no specific version is required.command
- The command from which to extract the identifier and versionVersionedAggregateIdentifier
instance reflecting the aggregate to execute the command onIllegalArgumentException
- if the command is not formatted correctly to extract this informationCopyright © 2010–2017. All rights reserved.