Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] newbie: wildcards in pointcuts

Ok, you've gotten a good example for us. Can you now reproduce it in a self contained form, including all of the classes to make it happen? It's hard reading the code inline, so you can send me a zip file off the mailing list as well.

Cheers,
Nick
On Mar 5, 2004, at 2:30 AM, Joost de Vries wrote:

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


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users




Back to the top