[jboss-cvs] JBossCache/src/org/jboss/cache/optimistic ...

Manik Surtani msurtani at jboss.com
Tue Jan 2 14:19:05 EST 2007


  User: msurtani
  Date: 07/01/02 14:19:05

  Modified:    src/org/jboss/cache/optimistic  WorkspaceNodeImpl.java
  Log:
  Optimised NodeFactory
  
  Revision  Changes    Path
  1.39      +1 -2      JBossCache/src/org/jboss/cache/optimistic/WorkspaceNodeImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: WorkspaceNodeImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/optimistic/WorkspaceNodeImpl.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -b -r1.38 -r1.39
  --- WorkspaceNodeImpl.java	2 Jan 2007 17:15:30 -0000	1.38
  +++ WorkspaceNodeImpl.java	2 Jan 2007 19:19:05 -0000	1.39
  @@ -16,7 +16,6 @@
   import org.jboss.cache.NodeSPI;
   import org.jboss.cache.UnversionedNode;
   import org.jboss.cache.VersionedNode;
  -import org.jboss.cache.factories.NodeFactory;
   
   import java.util.Collections;
   import java.util.HashMap;
  @@ -152,7 +151,7 @@
         if (child == null)
         {
            Fqn childFqn = new Fqn(parent.getFqn(), child_name);
  -         child = (NodeSPI) NodeFactory.getInstance().createNodeOfType(parent, child_name, childFqn, parent, null, cache, version);
  +         child = (NodeSPI) cache.getConfiguration().getRuntimeConfig().getNodeFactory().createNodeOfType(parent, child_name, parent, null);
            optimisticChildNodeMap.put(child_name, child);
         }
         dirty = true;
  
  
  



More information about the jboss-cvs-commits mailing list