org.axonframework.commandhandling.annotation
Annotation Type CommandHandlingMember


@Documented
@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface CommandHandlingMember

Marker annotation for field that contain an Entity capable of handling Commands on behalf of the aggregate. When a field is annotated with @CommandHandlerMember, 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.

Since:
2.2
Author:
Allard Buijze



Copyright © 2010-2016. All Rights Reserved.