org.axonframework.commandhandling
Interface CommandTargetResolver
- All Known Implementing Classes:
- AnnotationCommandTargetResolver, MetaDataCommandTargetResolver
public interface CommandTargetResolver
Interface towards a mechanism that is capable of extracting an Aggregate Identifier and Version form a command that
identifies the aggregate instance the command should be invoked on.
- Since:
- 1.2
- Author:
- Allard Buijze
resolveTarget
VersionedAggregateIdentifier resolveTarget(CommandMessage<?> command)
- Returns the Aggregate Identifier and optionally the expected version of the aggregate on which the given
command
should be executed. The version may be null
if no specific version is required.
- Parameters:
command
- The command from which to extract the identifier and version
- Returns:
- a
VersionedAggregateIdentifier
instance reflecting the aggregate to execute the command on
- Throws:
IllegalArgumentException
- if the command is not formatted correctly to extract this information
Copyright © 2010-2016. All Rights Reserved.