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

Manik Surtani msurtani at jboss.com
Thu Jul 20 07:14:16 EDT 2006


  User: msurtani
  Date: 06/07/20 07:14:16

  Modified:    src/org/jboss/cache/aop  TreeCacheAopView.java
  Log:
  Partially migrated to new configurators
  
  Revision  Changes    Path
  1.13      +4 -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.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- TreeCacheAopView.java	18 Jul 2006 10:50:45 -0000	1.12
  +++ TreeCacheAopView.java	20 Jul 2006 11:14:16 -0000	1.13
  @@ -10,11 +10,12 @@
   
   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;
  -import org.jboss.cache.PropertyConfigurator;
   import org.jboss.cache.TreeCacheView;
  +import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jgroups.View;
   
   import javax.swing.*;
  @@ -56,7 +57,7 @@
    *
    * @author Ben Wang
    * @deprecated Not used now. Use TreeCacheView2 directly.
  - * @version $Revision: 1.12 $
  + * @version $Revision: 1.13 $
    */
   public class TreeCacheAopView
   {
  @@ -131,8 +132,7 @@
   
         try {
            tree = new PojoCache();
  -         PropertyConfigurator config = new PropertyConfigurator();
  -         config.configure(tree, resource);
  +         tree.setConfiguration(new XmlConfigurationParser().parseFile(resource));
   
            tree.addTreeCacheListener(new TreeCacheView.MyListener());
            tree.createService();
  
  
  



More information about the jboss-cvs-commits mailing list