Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3239

To avoid leaky abstractions, a mixin collection should only ever emit collection domain events; ditto for properties.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.0.0-M8
    • 2.0.0-RC2
    • None
    • None

    Description

      For mixins, currently the ActionInvocationFacetForDomainEventAbstract , which invokes the action and emits events, only ever emits an ActionDomainEvent for all types of mixins. 

      But it doesn't look at the @Action, @Property or @Collection annotations on the class.

      Instead, it should first look at the class level if on of those annotations defines an domain event and when it doesn't then look at the method level.

      NB: this takes care of executing, executed ... think there will be some other code impacted for hide, disable, validate.

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: