[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] adding advice to 3rd party code
|
- From: Andrew Eisenberg <andrew@xxxxxxxxxxxx>
- Date: Wed, 5 Aug 2009 19:59:36 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=mbF1hVVbnRkedWwH7i1xuFaVMrZDypS5CfYUwNyLb5c=; b=q4D2m3X02Bfzcox9V+7oX2KbIbyWQMTyk4YC2/sGl/5JWCzrBlGS/8YEPaCFhKe7MY d0U2e0vkJ3DuM38BcxvPmPXFpNojn3OT/nXSd5I+4y1R2DJvqO5lr0qho0sL8Hz91qAN KvoHfJNrBddPI3b64ldFr6dNPJBtNB6JrkRHU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=MnujNjc78MKyTuyiLFaKnHiTAKRKQf0PsqP8wLFoi7oMyIZ+QZiKNNKG/xA5sjVWgl O76+3O/bbaZZn+JLYgivdtD9oD+MTdMc25+5zIKqVD3d0Sf1Wl+b0+Nujf5vXllQH5Jf qpzB4WPE/AI9hiPEgW7qMX9J7+TC2i1M+bXzI=
When in Eclipse, you can add jars to the in path from the AspectJ
build page in the project properties. However, I would recommend that
you move to a later version of Eclipse and AJDT, which will have much
better in path support.
On Wed, Aug 5, 2009 at 4:22 PM, Ramnivas Laddad<ramnivas@xxxxxxxxxxxxxxx> wrote:
> You can use binary weaving to weave into third-party jars. Take a look at
> the -inpath option to ajc.
> -Ramnivas
>
> On Wed, Aug 5, 2009 at 3:18 PM, <Dan.Lipofsky@xxxxxxxxxxxxxx> wrote:
>>
>> Is there a way I can put advice on code that is not
>> mine (3rd party code already compiled in a JAR)?
>> Use case: method a() calls b() which calls c() which calls d().
>> a() is my code while b, c, and d are not.
>>
>>
>> something like this:
>> @AfterReturning(pointcut = "call(* com.foo.Bar.*(..))")
>> public void logCall(JoinPoint thisJoinPoint) {
>> log.info(thisJoinPoint);
>> }
>>
>> works for b() but not d(). There are many paths to d(),
>> so I really want to capture it at that level.
>>
>> I am using annotations and compiling with
>> Eclipse 3.3 and Java 1.6.
>> - Dan
>> _______________________________________________
>> 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
>
>