Annotation Interface Apply


Annotation to be placed on methods that modify an entity value. The methods can be declared in either entity or event. The annotation can also be placed on a constructor of the entity or static method if the event creates a new entity.

Annotated methods are also used if an entity is loaded using event sourcing.

Annotated methods may consist of any number of parameters. If any parameter type is assignable to the loaded aggregate type or any matching child entities it will be injected. Other parameters like event Message will be automatically injected.