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

Manik Surtani msurtani at jboss.com
Wed Oct 18 07:07:54 EDT 2006


  User: msurtani
  Date: 06/10/18 07:07:54

  Modified:    src/org/jboss/cache/aop   MarshalledTreeCache.java
                        TreeCacheAopView.java
  Log:
  * added more tests for the move() API
  * added a nodeMoved listener event
  * moved some methods from CacheSPI to Cache
  
  Revision  Changes    Path
  1.16      +4 -0      JBossCache/src/org/jboss/cache/aop/MarshalledTreeCache.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MarshalledTreeCache.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/aop/MarshalledTreeCache.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- MarshalledTreeCache.java	6 Sep 2006 15:30:54 -0000	1.15
  +++ MarshalledTreeCache.java	18 Oct 2006 11:07:54 -0000	1.16
  @@ -348,6 +348,10 @@
      {
      }
   
  +   public void nodeMoved(Fqn from, Fqn to, boolean pre)
  +   {
  +   }
  +
      public void nodeActivated(Fqn fqn, boolean pre)
      {
      }
  
  
  
  1.16      +11 -5     JBossCache/src/org/jboss/cache/aop/TreeCacheAopView.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TreeCacheAopView.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/aop/TreeCacheAopView.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- TreeCacheAopView.java	6 Sep 2006 15:30:54 -0000	1.15
  +++ TreeCacheAopView.java	18 Oct 2006 11:07:54 -0000	1.16
  @@ -55,7 +55,7 @@
    * data needs to be displayed, the underlying tree will be accessed directly.
    *
    * @author Ben Wang
  - * @version $Revision: 1.15 $
  + * @version $Revision: 1.16 $
    * @deprecated Not used now. Use TreeCacheView2 directly.
    */
   public class TreeCacheAopView
  @@ -435,19 +435,24 @@
         nodeCreated(fqn, pre, true);
      }
   
  -   public void nodeActivated(Fqn fqn, boolean pre)
  +   public void nodeEvicted(Fqn fqn, boolean pre, boolean isLocal)
      {
  +      nodeRemoved(fqn, pre, isLocal, null);
      }
   
  -   public void nodePassivated(Fqn fqn, boolean pre)
  +   public void nodeMoved(Fqn from, Fqn to, boolean pre)
      {
      }
   
  -   public void nodeEvicted(Fqn fqn, boolean pre, boolean isLocal)
  +   public void nodeActivated(Fqn fqn, boolean pre)
      {
  -      nodeRemoved(fqn, pre, isLocal, null);
      }
   
  +   public void nodePassivated(Fqn fqn, boolean pre)
  +   {
  +   }
  +
  +
      public void nodeModified(final Fqn fqn, boolean pre, boolean isLocal, Map d)
      {
         if (!pre)
  @@ -801,6 +806,7 @@
      /* -------------------------- End of Private Methods ------------------------------ */
   
      /*----------------------- Actions ---------------------------*/
  +
      class ExitAction extends AbstractAction
      {
         private static final long serialVersionUID = 3309349735197545040L;
  
  
  



More information about the jboss-cvs-commits mailing list