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

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/statetransfer 
                        DefaultStateTransferIntegrator.java
  Log:
  Optimised NodeFactory
  
  Revision  Changes    Path
  1.12      +3 -3      JBossCache/src/org/jboss/cache/statetransfer/DefaultStateTransferIntegrator.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: DefaultStateTransferIntegrator.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/statetransfer/DefaultStateTransferIntegrator.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- DefaultStateTransferIntegrator.java	30 Dec 2006 19:48:45 -0000	1.11
  +++ DefaultStateTransferIntegrator.java	2 Jan 2007 19:19:05 -0000	1.12
  @@ -43,7 +43,7 @@
      {
         this.targetFqn = targetFqn;
         this.cache = cache;
  -      this.factory = NodeFactory.getInstance();
  +      this.factory = cache.getConfiguration().getRuntimeConfig().getNodeFactory();
         this.nodeType = cache.getConfiguration().isNodeLockingOptimistic()
                 ? NodeFactory.NodeType.VERSIONED_NODE
                 : NodeFactory.NodeType.UNVERSIONED_NODE;
  @@ -289,7 +289,7 @@
   
            // We handle this NodeData.  Create a TreeNode and
            // integrate its data            
  -         Node target = factory.createDataNode(nodeType, name, fqn, parent, nd.getAttributes(), false, null, cache);
  +         Node target = factory.createDataNode(name, fqn, parent, nd.getAttributes(), false);
            parent.getNodeSPI().addChild(name, target);
   
            // Recursively call, which will walk down the tree
  @@ -369,7 +369,7 @@
               // Missing level -- have to create empty node
               // This shouldn't really happen -- internal fqns should
               // be immediately under the root
  -            child = factory.createDataNode(nodeType, name, new Fqn(ancFqn, name), ancestor, null, true, null, cache);
  +            child = factory.createDataNode(name, new Fqn(ancFqn, name), ancestor, null, true);
               ((NodeSPI) ancestor).addChild(name, child);
            }
   
  
  
  



More information about the jboss-cvs-commits mailing list