title: Spring AOP: get access to argument names
body: <p>I'm using Spring 3.x, Java 6.</p>
  
  <p>I have an @Around aspect with the following joinpoint:</p>
  
  <pre><code>@Around("execution(public * my.service.*.*Connector.*(..))")
  </code></pre>
  
  <p>So, I'm basically interested in intercepting all calls to public methods of classes with the class name ending with "Connector". So far so good.</p>
  
  <p>Now, in my aspect I would like to access the actual argument names of the methods:</p>
  
  <pre><code>public doStuff(String myarg, Long anotherArg)
  </code></pre>
  
  <p><strong>myarg</strong> and <strong>anotherArg</strong></p>
  
  <p>I understand that using:</p>
  
  <pre><code>CodeSignature signature = (CodeSignature)jointPoint.getSignature();
  return signature.getParameterNames();
  </code></pre>
  
  <p>will actually work but only if I compile the code with the "<em>-g</em>" flag (full debug) and I would rather not do it.</p>
  
  <p>Is there any other way to get access to that kind of runtime information.</p>
  
  <p>Thanks
  L</p>