@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface CommandHandlingMemberMap
Map of Entities capable of handling Commands on behalf
of the aggregate. When a field is annotated with @CommandHandlerMemberMap, it is a hint towards Command
Handler discovery mechanisms that the entity should also be inspected for CommandHandler annotated methods.
Note that CommandHandler detection is done using static typing. This means that only the declared type of the field
can be inspected. If a subclass of that type is assigned to the field, any handlers declared on that subclass will
be ignored.| Modifier and Type | Required Element and Description |
|---|---|
String |
commandTargetProperty
The name of the property on the incoming command's payload that identifies the intended target of the command.
|
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends AbstractAnnotatedEntity> |
entityType
The type of entity contained in the annotated map.
|
public abstract String commandTargetProperty
PropertyAccessStrategy.public abstract Class<? extends AbstractAnnotatedEntity> entityType
Copyright © 2010-2015. All Rights Reserved.