[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
|
- From: Ashish Srivastava <ashish7s@xxxxxxxxx>
- Date: Thu, 26 Jun 2008 19:36:54 -0700 (PDT)
- Delivered-to: aspectj-users@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=dOlUPNcpe02sFUL5ECBbyAn2OBbYDsIDJbea6ZT1kVmNFdKr+HWQ5GmN6Op4/4ylHTF9abk/ta1iV5RAIg4QdRjFNkWKB8KlhqSGuaDo/zEXV4AaSJ+rC1Bv0xj4Xed/VyTur6HD9cDYhS81U71Hf93oymkaCJpkMjF776AQuCc=;
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