Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1254

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.11.0
    • Component/s: Core
    • Labels:

      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

            • Assignee:
              Unassigned
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: