You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2015/11/13 16:46:11 UTC
[jira] [Created] (ISIS-1254) Disable action/property/collection
events if set to Noop domain events
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)