Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] How to add a method to all classes in a package

Hi All,
   Is it possible to add (instrument) a method and its implementation to all the classes that I compile using ajc? If I have to add a method I do something like:
public aspect TestAspect {
  public void Test.myMethod () {
      System.out.println ("My Method");
  }
}

But is it possible that I can add myMethod () to all the classes not necessarily just the Test?

Thanks,
-Ashish


      


Back to the top