[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ajdt-dev] passing context to advices
|
Hello Dean,
it' s not working :(
actually, code i sent in first post works fine ONLY if i don' t specify any arguments to both pointcuts....
when i star to specify args for one of the two, after compiling iwth aspectj no methods will be intercepted
are there any restrictions on arguments when an advice refers more than 1 pointcut?
thanx and regards
marco
On 3/15/06, Dean Wampler
<dean@xxxxxxxxxxxxxxxxxxxxx> wrote:
Use "call" or "execution" instead of "withincode". Withincode matches
join points within the context of the function block, but you want to
match on invocations of the function.
Dean
Marco Mistroni wrote:
hello all,
i have following code which shows, in ajdt, no cross references..
pointcut getItems() :
call (* com.Manager.getItems(..));
pointcut build(DTO demand) :
withincode(* com.ProcessorBean.build(..,DTO))
&& args(demand);
Object around(DTO demand) :
(build(demand) && getItems()){
System.err.println("We are there...");
return proceed(demand);
}
if instead i omit the DTO parameter (menaing, i don't pass as argument
of my build pointcut, everything
works fine
anyone can tell me what's wrong? more likely i am using wrong
syntax.....
thanx and regards
marco
_______________________________________________
ajdt-dev mailing list
ajdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ajdt-dev