org.axonframework.commandhandling.annotation
Annotation Type TargetAggregateIdentifier


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface TargetAggregateIdentifier

Field or method level annotation that marks a field or method providing the identifier of the aggregate that a command targets.

If placed on a method, that method must contain no parameters. The return value will be used as the Aggregate Identifier.

If placed on a field, the field's value will be converted into an AggregateIdentifier instance identical to how a method's return value is converted.

Since:
1.2
Author:
Allard Buijze



Copyright © 2010-2016. All Rights Reserved.