Currently, the first iteration of Cause usage was useful for a variety of things, however, we've come to a point where we need to separate what is the "cause" of an event versus the "context" of an event.
One of the things that would take place would be the following:
Event gains a new getter for the direct cause of an event, possibly will recycle Cause.
Event also gains a new getter for the context such as EventContext, of which named objects are included, a method simply named as Event#getContext() or possibly getEventContext.
Of course, this will not take place until likely 1.9 as a majority of breaking changes are taking place there.
Currently, the first iteration of
Causeusage was useful for a variety of things, however, we've come to a point where we need to separate what is the "cause" of an event versus the "context" of an event.One of the things that would take place would be the following:
Eventgains a new getter for the direct cause of an event, possibly will recycleCause.Eventalso gains a new getter for the context such asEventContext, of which named objects are included, a method simply named asEvent#getContext()or possiblygetEventContext.Of course, this will not take place until likely 1.9 as a majority of breaking changes are taking place there.