title: How to define an aspectj pointcut that picks out all constructors of a class that has a specific annotation?
body: <p>Here is the annotation:</p>
  
  <pre><code>@Target(value = ElementType.TYPE)
  @Retention(value = RetentionPolicy.RUNTIME)
  @Inherited
  public @interface MyAnnotation {
      String name();
  }
  </code></pre>
  
  <p>Here is one annotated class:</p>
  
  <pre><code>@MyAnnotation(name="foo")
  public class ClassA {
      public ClassA() {
          // Do something
      }
  }
  </code></pre>
  
  <p>Here is a second annotated class:</p>
  
  <pre><code>@MyAnnotation(name="bar")
  public class ClassB {
      public ClassB(String aString) {
          // Do something
      }
  }
  </code></pre>
  
  <p>I am looking for an aspectj pointcut that correctly matches the constructors for ClassA and ClassB while not matching any other constructor for any other class NOT annotated by <code>MyAnnotation</code>.</p>