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

Brian Stansberry brian.stansberry at jboss.com
Wed May 23 01:47:10 EDT 2007


  User: bstansberry
  Date: 07/05/23 01:47:10

  Modified:    src/org/jboss/cache  TreeCacheView.java
  Log:
  Get rid of CacheImpl's CacheMBeanInterface property
  
  Revision  Changes    Path
  1.24      +3 -2      JBossCache/src/org/jboss/cache/TreeCacheView.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TreeCacheView.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/TreeCacheView.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -b -r1.23 -r1.24
  --- TreeCacheView.java	19 Jan 2007 02:04:11 -0000	1.23
  +++ TreeCacheView.java	23 May 2007 05:47:09 -0000	1.24
  @@ -11,6 +11,7 @@
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.jboss.cache.config.Configuration;
  +import org.jboss.cache.jmx.CacheJmxWrapper;
   import org.jgroups.View;
   
   import javax.management.MBeanServer;
  @@ -53,7 +54,7 @@
    * The view itself caches only the nodes, but doesn't cache any of the data (HashMap) associated with it. When
    * data needs to be displayed, the underlying cache will be accessed directly.
    *
  - * @version $Revision: 1.23 $
  + * @version $Revision: 1.24 $
    * @author Bela Ban
    */
   public class TreeCacheView implements TreeCacheViewMBean
  @@ -264,7 +265,7 @@
            cache.getNotifier().addCacheListener(new MyListener());
   
            log.info("registering the cache as " + mbean_name);
  -         srv.registerMBean(cache.getCacheMBeanInterface(), new ObjectName(mbean_name));
  +         srv.registerMBean(new CacheJmxWrapper(cache), new ObjectName(mbean_name));
   
            cache.start();
   
  
  
  



More information about the jboss-cvs-commits mailing list