Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Around Advice Generic


As far as I can see this advice should be correct (in the sense that
it executes but has no visible effect on the program).


2008/4/25 vtitou vergeos <titou2511@xxxxxxxxxxx>:
> Hi,
> I try to use around advice for a general use. I would like to use around for
> all the methods of a class which one does not know in advance the functions.
> For example, for a class A has which has 6 methods and a file aspectJ which
> defines a pointcut A.* for all the methods of A, is it possible to define a
> generic around for example:
> pointcut methods (): execution (public A.* (...));
> Object around (): methods () {
> ….
> return proceed ();
> }
> knowing that the methods of A have different signatures ! I tested the code
> written above and it does not function, it never passes in the around
> method whereas with a before or an after for the same pointcut, it works
> very well. If somebody already had to deal with this problem, I am waiting
> your answers!
> Cordially
> Antoine
> ________________________________
> Avec Windows Live Messenger restez en contact avec tous vos amis !
> Téléchargez Messenger, c'est gratuit !
> _______________________________________________
>  aspectj-users mailing list
>  aspectj-users@xxxxxxxxxxx

Eric Bodden
Sable Research Group
McGill University, Montréal, Canada

Back to the top