CrudEvents¶
-
public @interface
CrudEvents
¶ The
CrudEvents
annotation is used to specify which CRUD operations should send Motech events. CrudEvents value is an array of one or more values specified inCrudEventType
enum, 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.CrudEventsProcessor
and 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