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

Jason Thomas Greene jgreene at jboss.com
Wed May 16 14:29:18 EDT 2007


  User: jgreene 
  Date: 07/05/16 14:29:18

  Modified:    src/org/jboss/cache/pojo   PojoInstance.java
                        PojoReference.java
  Log:
  Move object refs from subnodes to fields
  
  Revision  Changes    Path
  1.2       +7 -0      JBossCache/src/org/jboss/cache/pojo/PojoInstance.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PojoInstance.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/pojo/PojoInstance.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- PojoInstance.java	13 Jan 2007 15:55:01 -0000	1.1
  +++ PojoInstance.java	16 May 2007 18:29:18 -0000	1.2
  @@ -10,6 +10,8 @@
   
   import java.io.Serializable;
   import java.util.ArrayList;
  +import java.util.Collection;
  +import java.util.Collections;
   import java.util.List;
   
   /**
  @@ -141,6 +143,11 @@
         return refCount_;
      }
   
  +   public List getReferences()
  +   {
  +      return Collections.unmodifiableList(referencedBy_);
  +   }
  +
      synchronized public Fqn getAndRemoveFirstFqnInList()
      {
         return (Fqn) referencedBy_.remove(0);
  
  
  
  1.2       +1 -1      JBossCache/src/org/jboss/cache/pojo/PojoReference.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PojoReference.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/pojo/PojoReference.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- PojoReference.java	13 Jan 2007 15:55:01 -0000	1.1
  +++ PojoReference.java	16 May 2007 18:29:18 -0000	1.2
  @@ -18,7 +18,7 @@
   public class PojoReference implements Serializable // Externalizable is no more efficient
   {
      //    protected static Log log=LogFactory.getLog(PojoReference.class.getLastElementAsString());
  -   public static final Object KEY = "PojoReference";
  +   public static final String KEY = "PojoReference";
      static final long serialVersionUID = 6492134565825613209L;
      // If not null, it signifies that this is a reference that points to this fqn.
      // Note that this will get replicated.
  
  
  



More information about the jboss-cvs-commits mailing list