cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Razumovsky <>
Subject Re: Order of callback methods
Date Thu, 19 Nov 2009 18:24:21 GMT

Callbacks and listeners are invoked in order they were added to
LifecycleCallbackRegistry. *BUT *when Cayenne saves the project, listeners
are written *before* callbacks, so unless you're adding listeners/callbacks
from the code there's no actual way to change this order (you can change it
manually in *map.xml, but it will get lost next time project is saved in

2009/11/19 Erdinç Kocaman <>

> Hi,
> I have a listener object implementing LifecycleListener and it listens all
> events of all data objects. And also data objects has listener methods like
> onPreUpdate() which is set on modeler.  I want to know which listener
> methods are called first when any event occurred. Is the first object called
> when event occurred the listener object implementing LifecycleListener or
> data objects having preUpdate() listener methods? Or is there any order when
> invoking callback methods??
> Thanks,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message