jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r691607 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation: ChangeLogBasedHierarchyMgr.java EventStateCollection.java
Date Wed, 03 Sep 2008 13:35:10 GMT
Author: mreutegg
Date: Wed Sep  3 06:35:10 2008
New Revision: 691607

URL: http://svn.apache.org/viewvc?rev=691607&view=rev
Log:
JCR-1715: Prevent excessive Path.Element instances

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ChangeLogBasedHierarchyMgr.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventStateCollection.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ChangeLogBasedHierarchyMgr.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ChangeLogBasedHierarchyMgr.java?rev=691607&r1=691606&r2=691607&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ChangeLogBasedHierarchyMgr.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ChangeLogBasedHierarchyMgr.java
Wed Sep  3 06:35:10 2008
@@ -21,6 +21,7 @@
 import org.apache.jackrabbit.core.ItemId;
 import org.apache.jackrabbit.core.ZombieHierarchyManager;
 import org.apache.jackrabbit.core.NodeId;
+import org.apache.jackrabbit.core.CachingHierarchyManager;
 import org.apache.jackrabbit.core.state.ChangeLog;
 import org.apache.jackrabbit.core.state.ItemState;
 import org.apache.jackrabbit.core.state.ItemStateException;
@@ -29,7 +30,6 @@
 import org.apache.jackrabbit.core.state.NodeReferences;
 import org.apache.jackrabbit.core.state.NodeReferencesId;
 import org.apache.jackrabbit.spi.Path;
-import org.apache.jackrabbit.spi.commons.conversion.PathResolver;
 
 import javax.jcr.ItemNotFoundException;
 import javax.jcr.RepositoryException;
@@ -45,7 +45,7 @@
  * the {@link ChangeLog} overlay the {@link ItemState}s in the
  * {@link ItemStateManager}.
  */
-class ChangeLogBasedHierarchyMgr extends HierarchyManagerImpl {
+class ChangeLogBasedHierarchyMgr extends CachingHierarchyManager {
 
     ZombieHierarchyManager zombieHierMgr;
 
@@ -56,7 +56,6 @@
      * @param rootNodeId the id of the root node.
      * @param manager the item state manager.
      * @param changes the changes that will be applied on the item state manager.
-     * @param resolver path resolver for outputting user friendly paths
      */
     ChangeLogBasedHierarchyMgr(NodeId rootNodeId,
                                ItemStateManager manager,

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventStateCollection.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventStateCollection.java?rev=691607&r1=691606&r2=691607&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventStateCollection.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventStateCollection.java
Wed Sep  3 06:35:10 2008
@@ -122,7 +122,6 @@
     public void createEventStates(NodeId rootNodeId, ChangeLog changes, ItemStateManager
stateMgr) throws ItemStateException {
         // create a hierarchy manager, that is based on the ChangeLog and
         // the ItemStateProvider
-        // todo use CachingHierarchyManager ?
         ChangeLogBasedHierarchyMgr hmgr =
             new ChangeLogBasedHierarchyMgr(rootNodeId, stateMgr, changes);
 



Mime
View raw message