[jboss-cvs] jboss-profiler/java/src/expansion/org/jboss/profiler/exp/agent/interceptor/jbossaop ...

Takuro Okada t2-okada at nri.co.jp
Mon Feb 19 05:53:28 EST 2007


  User: tokada  
  Date: 07/02/19 05:53:28

  Modified:    java/src/expansion/org/jboss/profiler/exp/agent/interceptor/jbossaop 
                        Tag: JBossProfiler_Expansion AopInterceptor.java
  Log:
  Removed some interfaces
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +1 -19     jboss-profiler/java/src/expansion/org/jboss/profiler/exp/agent/interceptor/jbossaop/Attic/AopInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AopInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/src/expansion/org/jboss/profiler/exp/agent/interceptor/jbossaop/Attic/AopInterceptor.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -b -r1.1.2.1 -r1.1.2.2
  --- AopInterceptor.java	15 Feb 2007 08:30:51 -0000	1.1.2.1
  +++ AopInterceptor.java	19 Feb 2007 10:53:28 -0000	1.1.2.2
  @@ -22,7 +22,6 @@
   
   package org.jboss.profiler.exp.agent.interceptor.jbossaop;
   
  -import java.lang.reflect.Constructor;
   import java.lang.reflect.Method;
   import java.util.Arrays;
   import java.util.concurrent.ArrayBlockingQueue;
  @@ -74,8 +73,6 @@
        * parameters
        */
       private String category = DEFAULT_CATEGORY;
  -    private String profilerServiceName = null;
  -    private String profilerServiceAddress = null;
       private String collectorFactoryName = null;
       private boolean async = true;
       private int collectorPoolSize = 1;
  @@ -94,14 +91,7 @@
           if(initialized.get()) return;
           
           try {
  -            Class clazz = Class.forName(collectorFactoryName);
  -            if(profilerServiceAddress==null) {
  -                Constructor constructor = clazz.getConstructor(String.class);
  -                factory = (MetricCollectorFactory)constructor.newInstance(new Object[]{profilerServiceName});
  -            }else {
  -                Constructor constructor = clazz.getConstructor(String.class, String.class);
  -                factory = (MetricCollectorFactory)constructor.newInstance(new Object[]{profilerServiceName, profilerServiceAddress});
  -            }
  +            factory = (MetricCollectorFactory)Class.forName(collectorFactoryName).newInstance();
           } catch (Exception e) {
               logger.error("Collector factory name is illegal.");
           }
  @@ -120,14 +110,6 @@
           this.category = trimParameter(category);
       }
       
  -    public void setProfilerServiceName(String profilerServiceName) {
  -        this.profilerServiceName = trimParameter(profilerServiceName);
  -    }
  -
  -    public void setProfilerServiceAddress(String profilerServiceAddress) {
  -        this.profilerServiceAddress = trimParameter(profilerServiceAddress);
  -    }
  -
       public void setAsync(boolean async) {
           this.async = async;
       }
  
  
  



More information about the jboss-cvs-commits mailing list