Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] cflow() and this/target


George,

Does it help?  Only entirely!  Looks like I really flubbed the syntax, but it is working now and is exactly what we're looking for.  Thanks!

cheers,
-adrian.
--
Adrian Powell
Centre for IBM e-Business Innovation :: Vancouver
apowell@xxxxxxxxxx / 604-297-3194



George Harley1 <GHARLEY@xxxxxxxxxx>
Sent by: aspectj-users-admin@xxxxxxxxxxx

08/25/2004 09:00 AM

Please respond to
aspectj-users

To
aspectj-users@xxxxxxxxxxx
cc
Subject
Re: [aspectj-users] cflow() and this/target






Hi,


Would it help if your pointcut was changed so that you were using cflowbelow on the execution of the performExecute() method ?


i.e...


pointcut
perfExecExec(ControllerCommandImpl controller):
     
cflowbelow(execution(* ControllerCommandImpl+.performExecute()))
      &&
this(controller);

Best regards,

George
________________________________________
George C. Harley



Adrian Powell <apowell@xxxxxxxxxx>
Sent by: aspectj-users-admin@xxxxxxxxxxx

25/08/2004 16:50

Please respond to
aspectj-users

To
aspectj-users@xxxxxxxxxxx
cc
Subject
[aspectj-users] cflow() and this/target








Hi all,


I'm enhancing a logger for a web-based application and I'd like to record the session ID with each entry/exit and eventually group all of these messages together.  What I'd like to do is something like:


pointcut
perfExecExec(ControllerCommandImpl controller):
     
cflowbelow(* ControllerCommandImpl+.performExecute())
      &&
this(controller);

It looks like the "this" and "target" pointcuts don't apply, but I wanted to confirm.


Is there anyway to get this working?  Is there a technical reason for why there is not a pointcut which will match this state information for cflow/cflowbelow?


cheers,
-adrian.


Back to the top