title: AspectJ with aop.xml
body: <p>I'm trying to define an inheriting concrete-aspect via an LTW aop.xml file, but nothing seems to
  be happening.</p>
  
  <p>here is my code:</p>
  
  <p>My main method:</p>
  
  <pre><code>package example;    
  
  public class Farm {
  
  static Cat cat = new Cat();
  static Cow cow = new Cow();
  static Dog dog = new Dog();
  static Fox fox = new Fox();
  
  public static void main(String args[]){
      System.out.println(cat.talk(1));
      System.out.println(dog.talk(1));
      System.out.println(cow.talk(1));
      System.out.println(fox.talk(1));
  }
  }
  </code></pre>
  
  <p>The Fox calss:</p>
  
  <pre><code>package example;
  
  public class Fox extends Animal{
  
  public String talk(int i) {
      return "DING DING!!!";
  }
  }
  </code></pre>
  
  <p>My abstract aspect:</p>
  
  <pre><code>package example;
  
  public abstract aspect MyAspect {
  protected abstract pointcut scope();
  
  before() : scope() {
      System.out.println("Before");
  }
  }
  </code></pre>
  
  <p>My aop.xml file:</p>
  
  <pre><code>&lt;aspectj&gt;
      &lt;aspects&gt;
      &lt;aspect name="example.MyAspect"/&gt;
          &lt;concrete-aspect
              name="example.MyConcreteAspect"
              extends="example.MyAspect"
          &gt;
              &lt;pointcut
                  name="scope"
                  expression="execution(public String example.Fox.talk(int))"
              /&gt;
          &lt;/concrete-aspect&gt;
      &lt;/aspects&gt;
  &lt;/aspectj&gt;
  </code></pre>
  
  <p>And finally, my output:</p>
  
  <pre><code>MEW
  WOOF
  MOO
  DING DING!!!
  </code></pre>
  
  <p>With no "Before" printed before the "DING DING!!!"</p>
  
  <p>Any Idea what am I doing wrong?
  I've already downloaded a working example, and everything seems to be
  configured ok on my computer...</p>