OPENJPA-2293: Don't check for listeners if exclude-default-listener is configured.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1406241 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Richard G. Curtis 2012-11-06 17:43:22 +00:00
parent cd7851e9d3
commit c6fa108b30
1 changed files with 1 additions and 1 deletions

View File

@ -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)