Hi,

i'm using Spring AOP in one of my projects, and the "bean" pointcut expression keyword is exactly what i'm looking for.

I have a slight problem though: i would like to enable the aspect for every method returning a MessageI18N object, defined in a "Service(something)Impl" bean

I tried to define my pointcut that way:

Code:
<aop:config>
	<aop:pointcut 
		id="services" 
		expression="bean(Service*Impl) and execution(MessageI18N *.*(..))" 
	/>
	<aop:advisor advice-ref="txAdvice" pointcut-ref="services" />
</aop:config>
but it didn't work. I also tried with

Code:
expression="bean(Service*) and bean(*Impl) and execution(MessageI18N *.*(..))"
but it didn't work either.

I get it to work with:

Code:
expression="bean(*Impl) and execution(MessageI18N *.*(..))"
but i would like to have the pointcut as restrictive as possible, which isn't the case with the previous expression, since i lose the "Service" part of the bean name.

I'm looking for a tutorial about how wildcards work in pointcut expressions but couldn't find one in Spring reference guide :\

can anyone help me on this one?

Thanks a lot!