title: Is it possible to weave some classes from a jar while excluding the rest of the classes?
body: <p>I am trying to to extend a 3rd lib code with new capabilities.</p>
  
  <p>And since I only need to inject some code around one method from one class, I figured I can either:</p>
  
  <ol>
  <li>Fork the project and apply my changes (<code>seems sloppy, and will definitely require lots of work whenever I try to upgrade to a newer version of the lib, not to mention licensing nightmare</code>)</li>
  <li>Use [AOP] to intercept that one method from that one class inside a huge jar (<code>seems cleaner</code>) and inject my extra tests</li>
  </ol>
  
  <p>In case any of you wants to know, that one class is not a spring bean and is used deep in the code, so I can not simply extend it and override/wrap that method easily, it would require at least a couple extra layers of extend&amp;override/wrap. So AspectJ &amp; AOP seems like the better way to go.</p>
  
  <p>I managed to set my project up with some plugin to invoke <code>ajc</code> and weave the code with my desired jar in the <code>-inpath</code> param. And the only problem is that <code>ajc</code> seems to weave everything (or at least duplicate it);</p>
  
  <p><strong>So what I need basically is to ask <code>AJC</code> to simply wave that class from that jar, and not the whole jar !</strong></p>