[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] aspectj-users Digest, Vol 74, Issue 10
|
I think the error is that you put the pointcut execution inside de before()'s adivce, maybe you should try with this:
Before(List <VEHICLE+>): execution(public * *(List<VEHICLE+>, ..) && args(firstArgument,..) ")
greetings
2011/4/27
<aspectj-users-request@xxxxxxxxxxx>
Send aspectj-users mailing list submissions to
aspectj-users@xxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users
or, via email, send a message with subject or body 'help' to
aspectj-users-request@xxxxxxxxxxx
You can reach the person managing the list at
aspectj-users-owner@xxxxxxxxxxx
When replying, please edit your Subject line so it is more specific
than "Re: Contents of aspectj-users digest..."
Today's Topics:
1. simple question about matching lists (Srinivas S Tamvada)
----------------------------------------------------------------------
Message: 1
Date: Tue, 26 Apr 2011 15:29:22 -0700 (PDT)
From: Srinivas S Tamvada <tssrinivas@xxxxxxxxx>
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] simple question about matching lists
Message-ID: <455284.89283.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=us-ascii
Hi
I am trying to match methods which take list arguments.
I am interested only in list of "vehicles" or subtypes.
Below does not seem to match. Any comments will be appreciated.
Seems okay according to http://www.eclipse.org/aspectj/doc/released/adk15notebook/generics-inAspectJ5.html.
Thanks,
-SST
@Before("execution(public * *(List<VEHICLE+>, ..)) && args(firstArgument,..) ")
public void provideAdviseUponMethodInvocation( List<VEHICLE> firstArgument , JoinPoint jp )
------------------------------
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
End of aspectj-users Digest, Vol 74, Issue 10
*********************************************
--
________________________________
Ignacio Rigoni Iriarte "La verdadera revolución, es la revolución de la conciencia"