Re: Order of callback methods

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Thu Nov 19 2009 - 13:24:21 EST

  • Next message: Aristedes Maniatis: "New Committer: Olga"

    Hi,

    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
    modeler

    2009/11/19 Erdinç Kocaman <kocaman..ahoo.com>

    > 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,
    >
    >
    >

    -- 
    Andrey
    



    This archive was generated by hypermail 2.0.0 : Thu Nov 19 2009 - 13:25:45 EST