Thanks

This last works :)



2012/1/16 Frank Pavageau <[email protected]>:
> So have you tried "execution (void Interface1.*(..))" ?
>
> Frank
>
> On Mon, Jan 16, 2012 at 12:55 PM, Dénes Németh
> <[email protected]> wrote:
>> Hi,
>>
>> The "execution (void Interface1+.*(..))" pointcut will advise all methods in 
>> the
>> "class Simple1 implements Interface1" and not just the one which were
>> declared in the Interfac1 interface.
>>
>> Best wishes,
>> Denes
>>
>>
>> 2012/1/16 Frank Pavageau <[email protected]>:
>>> Hi.
>>>
>>> That's "execution (void Interface1+.*(..))" (or "execution (*
>>> Interface1+.*(..))"). Your pointcut is missing the method.
>>>
>>> Frank
>>>
>>> On Sun, Jan 15, 2012 at 9:14 AM, Dénes Németh <[email protected]> 
>>> wrote:
>>>> Hi
>>>>
>>>> How is it possible to match all functions declared in a certain interface
>>>> without specifying them one by one.
>>>> Logically the following would be on, but AspectJ reports syntax error.
>>>> (because IdPattern can not contain +), but I assume that this is
>>>> possible somehow.
>>>>
>>>> pointcut p1() : execution (void Interface1+(..));
>>>>
>>>> public interface Interface1 {
>>>>   public void func();
>>>>   //let's assume that we have a  lot of functions here
>>>> }
>>>>
>>>> classs Simple1 implements Interface1 {
>>>>   public void func(){
>>>>      System.out.println("test");
>>>>   }
>>>> }
>>>>
>>>> Thanks, Denes
>>>> _______________________________________________
>>>> aspectj-users mailing list
>>>> [email protected]
>>>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>> _______________________________________________
>>> aspectj-users mailing list
>>> [email protected]
>>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>> _______________________________________________
>> aspectj-users mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to