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:45:24 EDT

  • Next message: Aristedes Maniatis: "Re: Beta 1 ?"

    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
    



    This archive was generated by hypermail 2.0.0 : Thu Oct 08 2009 - 09:47:26 EDT