Dan Haywood created ISIS-1254:
---------------------------------
Summary: Disable action/property/collection events if set to Noop
domain events
Key: ISIS-1254
URL: https://issues.apache.org/jira/browse/ISIS-1254
Project: Isis
Issue Type: Improvement
Components: Core
Affects Versions: 1.10.0
Reporter: Dan Haywood
Assignee: Dan Haywood
Fix For: 1.11.0
Following the pattern introduced in ISIS-1252 for the XxxUiEvents.
Thus, to disable an event being fired for an action, use:
{code}
@Action(domainEvent=ActionDomainEvent.Noop.class)
public void someAction() { ... }
{code}
Note though that to avoid breaking backward compatibility the default for the
annotation attribute is still "ActionDomainEvent.Default.class", meaning that:
{code}
@Action
public void someAction() { ... }
{code}
*will* (still) cause an event to be fired.
~~~
We will probably make Noop the default in 2.0.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)