Re: [aspectj-users] Examining a destructive read in an aspect

2011-02-03 Thread Andy Clement
ly?  I've had no success with specifying a wildcarded package > expression that will work for me. > > Thanks, > Lee > > -Original Message- > From: aspectj-users-boun...@eclipse.org > [mailto:aspectj-users-boun...@eclipse.org] On Behalf Of Grey, Lee > Sent: Thursday, F

Re: [aspectj-users] Examining a destructive read in an aspect

2011-02-03 Thread Grey, Lee
to:aspectj-users-boun...@eclipse.org] On Behalf Of Grey, Lee Sent: Thursday, February 03, 2011 2:00 PM To: aspectj-users@eclipse.org Subject: Re: [aspectj-users] Examining a destructive read in an aspect My if() strategy is not working on more complex processes, because there seem to be nested cal

Re: [aspectj-users] Examining a destructive read in an aspect

2011-02-03 Thread Grey, Lee
om: aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] On Behalf Of Andy Clement Sent: Thursday, February 03, 2011 1:28 PM To: aspectj-users@eclipse.org Subject: Re: [aspectj-users] Examining a destructive read in an aspect I think you really should be able to single out the o

Re: [aspectj-users] Examining a destructive read in an aspect

2011-02-03 Thread Andy Clement
t; > From: aspectj-users-boun...@eclipse.org > [mailto:aspectj-users-boun...@eclipse.org] On Behalf Of Grey, Lee > Sent: Wednesday, February 02, 2011 11:45 PM > To: aspectj-users@eclipse.org > Subject: Re: [aspectj-users] Examining a destructive read in

Re: [aspectj-users] Examining a destructive read in an aspect

2011-02-03 Thread Grey, Lee
j-users@eclipse.org Subject: Re: [aspectj-users] Examining a destructive read in an aspect I've done what you suggested, and I think it would work fine, except that I can't get the pointcut right for the two calls I need to intercept. I seem to be getting all or nothing. W

Re: [aspectj-users] Examining a destructive read in an aspect

2011-02-02 Thread Grey, Lee
aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] On Behalf Of Ramnivas Laddad Sent: Monday, January 31, 2011 8:50 PM To: aspectj-users@eclipse.org Subject: Re: [aspectj-users] Examining a destructive read in an aspect You could do something along the following li

Re: [aspectj-users] Examining a destructive read in an aspect

2011-01-31 Thread Ramnivas Laddad
You could do something along the following lines: 1. In your before advice read destructively as needed and store away the result 'env' in a ThreadLocal. 2. Advise ctx.getNextIncoming() with an around advice to return the stored result (and don't call proceed() in it). -Ramnivas On Mon, Jan 31, 2

[aspectj-users] Examining a destructive read in an aspect

2011-01-31 Thread Grey, Lee
I've been working on intercepting the service() method invocation in a Sonic ESB container. I had just started to write my before() advice when the bad news dawned on me. Just about every ESB service() method starts with the following... public void service(XQServiceContext ctx) throws XQS