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

Disable action/property/collection events if set to Noop domain events

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.10.0
    • 1.11.0
    • Core

    Description

      Following the pattern introduced in ISIS-1252 for the XxxUiEvents.

      Thus, to disable an event being fired for an action, use:

      @Action(domainEvent=ActionDomainEvent.Noop.class)
      public void someAction() { ... }
      

      Note though that to avoid breaking backward compatibility the default for the annotation attribute is still "ActionDomainEvent.Default.class", meaning that:

      @Action
      public void someAction() { ... }
      

      will (still) cause an event to be fired.

      ~~~
      We will probably make Noop the default in 2.0.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: