Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Intercepting collection event

Hello,

In the following code, I want to process on "myObject" everytime a
add*() method is called :

myObject.getMyList().add()

I'm not able to find the suitable pointcut... I can get the Collection
returned by getMyList(), but I can't get the object that contains the
List.

I tried :

public pointcut AddItem(MyClass r): 
	call(* MyClass.get*.add*(..)) && target(r);

Any ideas ? 
Thanks !

Fifre



Back to the top