title: How to read parameter values in a constructor using javassist
body: <p>I am instrument Java ThreadPoolExecutor  class as follows </p>
  
  <pre><code>if (className.contains("java/util/concurrent/ThreadPoolExecutor")) {
              try {
                  ClassPool classPool = ClassPool.getDefault();
                  CtClass ctClass = classPool.makeClass(new ByteArrayInputStream(
                          classfileBuffer));
                  CtConstructor constructor[] = ctClass.getConstructors();
                  for (CtConstructor con : constructor) {
                      System.out.println("constructor " + con.getLongName());
                  }
                  byteCode = ctClass.toBytecode();
                  ctClass.detach();
              } catch (Throwable ex) {
                  System.out.println("Exception: " + ex);
                  ex.printStackTrace();
              }
          }
  </code></pre>
  
  <p>Form this I am geeing constructor name as follows </p>
  
  <pre><code>java.util.concurrent.ThreadPoolExecutor$Worker(java.util.concurrent.ThreadPoolExecutor,java.lang.Runnable)
  </code></pre>
  
  <p>I want to make a ThreadPoolExecutor using parameter of the constructor like this </p>
  
  <pre><code>ThreadPoolExecutor tpe = (ThreadPoolExecutor)...
  </code></pre>
  
  <p>How to do like this.</p>