CrudEvents¶
-
public @interface
CrudEvents¶ The
CrudEventsannotation is used to specify which CRUD operations should send Motech events. CrudEvents value is an array of one or more values specified inCrudEventTypeenum, that is: CREATE, UPDATE, DELETE. There are also two special values - ALL, NONE. When provided, all CRUD operations are enabled/disabled for entity, regardless of presence of other values.This annotation is processed by
org.motechproject.mds.annotations.internal.CrudEventsProcessorand can be applied only to class which is also annotated withEntity. It has no effect otherwise.See also:
CrudEventType,org.motechproject.mds.annotations.internal.CrudEventsProcessor