jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r512978 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java
Date Wed, 28 Feb 2007 21:27:39 GMT
Author: mreutegg
Date: Wed Feb 28 13:27:38 2007
New Revision: 512978

URL: http://svn.apache.org/viewvc?view=rev&rev=512978
Log:
- Only register event listener if observation is needed.

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java?view=diff&rev=512978&r1=512977&r2=512978
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java
Wed Feb 28 13:27:38 2007
@@ -60,10 +60,10 @@
                 // spi does not support observation, or another error occurred.
             }
             this.eventFilter = (filter == null) ? Collections.EMPTY_LIST : Collections.singletonList(filter);
+            wspManager.addEventListener(this);
         } else {
             this.eventFilter = Collections.EMPTY_LIST;
         }
-        wspManager.addEventListener(this);
     }
 
     //----------------------------------------------< InternalEventListener >---



Mime
View raw message