Re: svn commit: r822698 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Thu Oct 08 2009 - 09:56:31 EDT

  • Next message: Michael Gentry: "Wiki down? Broken link?"

    Not yet :)

    2009/10/8 Andrus Adamchik <andru..bjectstyle.org>

    > Nah, just overlooked it during refactoring I guess. Good catch. Thanks for
    > fixing it.
    >
    > Andrus
    >
    >
    > On Oct 8, 2009, at 4:45 PM, Andrey Razumovsky wrote:
    >
    > Hi Andrus,
    >>
    >> Was removing prePersist from Lifecycle listener done intentionally?
    >>
    >> 2009/10/7 <andre..pache.org>
    >>
    >> Author: andrey
    >>> Date: Wed Oct 7 12:42:39 2009
    >>> New Revision: 822698
    >>>
    >>> URL: http://svn.apache.org/viewvc?rev=822698&view=rev
    >>> Log:
    >>> fixing problem with default listeners in new callback model
    >>>
    >>> Modified:
    >>>
    >>>
    >>> cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java
    >>>
    >>> Modified:
    >>>
    >>> cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java
    >>> URL:
    >>>
    >>> http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java?rev=822698&r1=822697&r2=822698&view=diff
    >>>
    >>>
    >>> ==============================================================================
    >>> ---
    >>>
    >>> cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java
    >>> (original)
    >>> +++
    >>>
    >>> cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java
    >>> Wed Oct 7 12:42:39 2009
    >>>.. -75,6 +75,7 @@
    >>> */
    >>> public void addDefaultListener(LifecycleListener listener) {
    >>> addDefaultListener(LifecycleEvent.POST_ADD, listener, "postAdd");
    >>> + addDefaultListener(LifecycleEvent.PRE_PERSIST, listener,
    >>> "prePersist");
    >>> addDefaultListener(LifecycleEvent.POST_PERSIST, listener,
    >>> "postPersist");
    >>> addDefaultListener(LifecycleEvent.PRE_REMOVE, listener,
    >>> "preRemove");
    >>> addDefaultListener(LifecycleEvent.POST_REMOVE, listener,
    >>> "postRemove");
    >>>
    >>>
    >>>
    >>>
    >>
    >> --
    >> Andrey
    >>
    >
    >

    -- 
    Andrey
    



    This archive was generated by hypermail 2.0.0 : Thu Oct 08 2009 - 09:58:29 EDT