Annotation Interface CommandHandling


@Target({METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented @Inherited public @interface CommandHandling
Annotation to be used in favor of defining CommandHandlerDefinition Beans.

It can be placed on public methods returning void or any other CommandHandler result. Such methods may have any of the following unique parameter types, in any order:

To be able to derive the CommandHandlerDefinition.instanceClass(), any of the latter two parameters is optional, but not both.

The method must be contained within an AnnotatedBeanDefinition, for instance within Components or Configurations.

See Also: