hi Rod,
after I found this blog entry, i adapt my code to the following:
Code:
<bean id="proxyCreator"
class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<!--create a wrapper proxy around all beans named *DaoImpl. in particular,
a dynamic proxy will be generated for model dao implementations -->
<property name="beanNames" value="*DaoImpl"/>
<property name="interceptorNames">
<list>
<value>theDaoUpdateAdvice</value>
</list>
</property>
</bean>
<!-- Advisor pointcut definition for after advice -->
<bean id="theDaoUpdateAdvice"
class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
<property name="advice">
<ref local="daoUpdateAdvice"/>
</property>
<property name="patterns">
<list>
<value>.*saveOrUpdate</value>
<value>.*remove</value>
<value>.*update</value>
</list>
</property>
</bean>
it would be interesting to know if it is possible to define pointcut using for example annotations (ala aspectj5) instead of method signature. is this possible?