Package com.opencqrs.framework.command
Annotation Interface StateRebuilding
@Target({METHOD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Inherited
public @interface StateRebuilding
Annotation to be used in favor of defining
StateRebuildingHandlerDefinition
Beans.
It can be placed on public methods returning a non-primitive Object representing the
StateRebuildingHandlerDefinition.instanceClass() and with at least one non-primitive parameter extending
Object representing an assignable StateRebuildingHandlerDefinition.eventClass() Additionally such
methods may have any of the following unique parameter types, in any order:
- a type derived from
Objectrepresenting theStateRebuildingHandlerDefinition.instanceClass() - a
java.util.Map<String, ?>for the event meta-data - a
Stringfor the event subject - an
Eventfor the raw event - any number of
Autowiredannotated parameters, resolving to single beans within theApplicationContext
The method must be contained within an
AnnotatedBeanDefinition, for instance within
Components or Configurations.
- See Also: