Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Execution joinpoint for calls to interface methods?

Ramnivas,

Thanks. I had a hunch it was right there before my eyes, but I somehow missed it anyway - perhaps it was *too* obvious. ;-)

- Ken

On Apr 25, 2006, at 3:50 PM, Ramnivas Laddad wrote:

Ken,

Just use "execution(SomeInterface.*(..))" as the pointcut.

-Ramnivas

===
Ramnivas Laddad,
Author, AspectJ in Action
http://ramnivas.com
M: (408)203-4621

Ken Pelletier wrote:
I'd like to create a joinpoint that captures execution of all methods declared on a certain interface within all implementors of that interface.

I can see how I can use a type expression to get all implementors:

execution(SomeInterface+.*(..)) :

Obviously, this is all methods within the selected targets; implementors of SomeInterface

(How) can I also constrain the execution joinpoint further to include only the methods declared by the interface being implemented?

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top