Skip to main content



      Home
Home » Language IDEs » AspectJ » PointCut and Advice to "new" object
PointCut and Advice to "new" object [message #585750] Wed, 12 January 2005 09:37
Eclipse UserFriend
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: Thu Jun 19 22:54:19 EDT 2025

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

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

Back to the top