Clone
danhaywood <dan@haywood-associates.co.uk>
committed
on 22 Nov 18
ISIS-2043: adds support for @DomainObject(xxxDomainEvent=...) for mixins
whereby will honour the domain event specified if not otherwise ann… Show more
ISIS-2043: adds support for @DomainObject(xxxDomainEvent=...) for mixins

whereby will honour the domain event specified if not otherwise annotated.

In fact, this contains a few other fixes:

* previously, although mixin actions did emit domain events for all phases (hide/disable/validate/executing/executed), mixin properties and mixin collections emitted none.  Now this is fixed so that the emit domain events for the first two phases (hide/disable).  It doesn't make sense to emit them for the remainder because mixin props/colls are always derived (are read-only queries under the covers).

* also, getMixedIn() now promoted from ActionDomainEvent up to AbstractDomainEvent

* also, added similar getSubject() (a simple wrapper around getSource() and getMixedIn()) also in AbstractDomainEvent.

Show less

master + 29 more