Here's a refined proposal after Anca's comments and after having talked to Thomas
about it:
For XE 2.6RC2:
============
* Move Annotations events to the annotation-core module in org.xwiki.annotation.event
package
* Move script events to the xwiki-script module (in org.xwiki.script.event package)
* Move Attachments events to xwiki-core for now (in a com.xpn.xwiki.event package)
* Move Comments events to xwiki-core for now (in a com.xpn.xwiki.event package)
For XE 2.7RC1:
============
* Move Documents events (and all model events in general: classes, objects, etc) to the
Model module in an event package (org.xwiki.model.event).
* Move Action events to xwiki-core for now (in a com.xpn.xwiki.event package)
* Move Application started/stopped events to xwiki-container-api (in a
org.xwiki.container.event package)
More specifically, in order to preserve backward compat:
* Modify all places sending events so that they send the new event classes
* Create a Backward compatibility Listener that listens to the new events and which
resends them as old events
* We need to modify code that listens to all events (such as the remote observation module
and maybe even the activity stream) to filter out events so that we don't get
duplicates.
Since we already voted I'm going to implement the tasks for XE 2.6RC2 right now.
Please let me know if it's ok for XE 2.7RC1.
Thanks
-Vincent
On Nov 3, 2010, at 10:00 AM, Vincent Massol wrote:
Hi,
We have created a mess we need to fix ASAP since event classes are public. Here's a
proposal:
* Move Documents events (and all model events in general: classes, objects, etc) to the
Model module in an event package (org.xwiki.model.event).
* Move Action events to xwiki-core for now (in a com.xpn.xwiki.event package)
* Move Annotations events to the annotation-core module in org.xwiki.annotation.event
package
* Move script events to the xwiki-script module (in org.xwiki.script.event package)
* Move Attachments events to xwiki-core for now (in a com.xpn.xwiki.event package)
* Move Application started/stopped events to xwiki-container-api (in a
org.xwiki.container.event package)
+1 from me
Thanks
-Vincent