[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] newbie: wildcards in pointcuts
|
> This is just a guess, but should you be using the .. form?
*snip*
Yes, I've tried that too:
pointcut serviceInvocations(Object o):call(public org..*
org..*.multiplyByTwo(org.dji..*))&&args(o);
before(Object o): serviceInvocations(o){
System.out.println("*****************************");
}
works, but
pointcut serviceInvocations(Object o):call(public org..*ResponseSDO
org..*.multiplyByTwo(org.dji..*RequestSDO))&&args(o);
before(Object o): serviceInvocations(o){
System.out.println("*****************************");
}
doesn't.
> Also, I can't tell from your example, what class is
> "multiplyByTwoService" defined on?
Something like:
org.myorganization.service.MultiplicationService
(obviously I've anonimized the source code to protect my client)
It's called like this
MultiplicationService service= etcetera;
MultiplicationResponseSDO aResponse = service.multiplyByTwoService(aRequest);
Nothing special.
I feel rather stupid: I stated on this rather large project for a Dutch
ministry that aspect-orientation and aspectj are ready for the prime-time
and no longer an arcane art that nobody understands. And now I can't get
the "Hello World" of aspect-orientation to work....
groetjes,
Joost