Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » PointCut and Advice to "new" object
PointCut and Advice to "new" object [message #585750] Wed, 12 January 2005 14:37
harry sheng is currently offline harry shengFriend
Messages: 37
Registered: July 2009
Member
Hi,

I want pointcut each and every "new my.pkg1.MyClass()" call in every class
of my.pkg2 package. In the advice, I want to catch the instance from which
the "new my.pkg1.MyClass()" is called, and the new my.pkg1.MyClass
instance.

How should I write the pointcut and advice? It seems I could only get
either one instance, not both.

Harry Sheng
Previous Topic:privileged aspects
Next Topic:Catch Exception instance in advice for handler pointcut
Goto Forum:
  


Current Time: Sat Apr 20 01:12:30 GMT 2024

Powered by FUDForum. Page generated in 0.02926 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top