[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Pointcut on a constructor with a custom @Annotation

Hallo Mailingliste

I am struggling to create a proper pointcut on a constructor. I want to
catch all creations of an object which is annotated with a custom
annotation. Like:

@MyAnnotation
public class TheClass {

  public The Class {
  }

}

So whenever the a new TheClass is instantiated I want to get notified.
Therefore I developed the following Pointcut: