openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r1406241 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
Date Tue, 06 Nov 2012 17:43:23 GMT
Author: curtisr7
Date: Tue Nov  6 17:43:22 2012
New Revision: 1406241

URL: http://svn.apache.org/viewvc?rev=1406241&view=rev
Log:
OPENJPA-2293: Don't check for listeners if exclude-default-listener is configured.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java?rev=1406241&r1=1406240&r2=1406241&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
Tue Nov  6 17:43:22 2012
@@ -3278,7 +3278,7 @@ public class StateManagerImpl
 
         // no listeners?
         LifecycleEventManager mgr = _broker.getLifecycleEventManager();
-        if (mgr == null || !mgr.hasLoadListeners(getManagedInstance(), _meta))
+        if (mgr == null || !mgr.isActive(_meta) || !mgr.hasLoadListeners(getManagedInstance(),
_meta))
             return;
 
         if (fetch == null)



Mime
View raw message