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

Manik Surtani msurtani at jboss.com
Wed Aug 16 06:52:50 EDT 2006


  User: msurtani
  Date: 06/08/16 06:52:50

  Modified:    src/org/jboss/cache/aop   MarshalledTreeCache.java
                        TreeCacheAopView.java
  Log:
  fixed simple notification events
  
  Revision  Changes    Path
  1.14      +1 -1      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.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- MarshalledTreeCache.java	19 Jul 2006 21:34:43 -0000	1.13
  +++ MarshalledTreeCache.java	16 Aug 2006 10:52:50 -0000	1.14
  @@ -84,7 +84,7 @@
   
      public void startService() throws Exception
      {
  -      super.addTreeCacheListener(this);
  +      super.getNotifier().addCacheListener(this);
         super.startService();
         if(localCopy_ == null)
            throw new RuntimeException("startService(): null localCopy_");
  
  
  
  1.14      +3 -4      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.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- TreeCacheAopView.java	20 Jul 2006 11:14:16 -0000	1.13
  +++ TreeCacheAopView.java	16 Aug 2006 10:52:50 -0000	1.14
  @@ -10,7 +10,6 @@
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  -import org.apache.log4j.PropertyConfigurator;
   import org.jboss.cache.CacheListener;
   import org.jboss.cache.CacheSPI;
   import org.jboss.cache.Fqn;
  @@ -57,7 +56,7 @@
    *
    * @author Ben Wang
    * @deprecated Not used now. Use TreeCacheView2 directly.
  - * @version $Revision: 1.13 $
  + * @version $Revision: 1.14 $
    */
   public class TreeCacheAopView
   {
  @@ -134,7 +133,7 @@
            tree = new PojoCache();
            tree.setConfiguration(new XmlConfigurationParser().parseFile(resource));
   
  -         tree.addTreeCacheListener(new TreeCacheView.MyListener());
  +         tree.getNotifier().addCacheListener(new TreeCacheView.MyListener());
            tree.createService();
            tree.startService();
   
  @@ -209,7 +208,7 @@
      {
         this.cache_ = cache;
   
  -      cache_.addTreeCacheListener(this);
  +      cache_.getNotifier().addCacheListener(this);
         addNotify();
         setTitle("TreeCacheAopGui: mbr=" + getLocalAddress());
   
  
  
  



More information about the jboss-cvs-commits mailing list