org.axonframework.commandhandling.annotation
Annotation Type CommandHandler


@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface CommandHandler

Marker annotation to mark any method on an object as being a CommandHandler. Use the AnnotationCommandHandlerAdapter to subscribe the annotated class to the command bus.

The annotated method may contain only a single parameter. That parameter is considered the command that the handler will process.

Since:
0.5
Author:
Allard Buijze



Copyright © 2011. All Rights Reserved.