Hello,
I'm trying to use annotation based AOP to inject security information into my beans before I save them. I have a generic interface BeanDao<BeanType> which all my DAOs extend, and a base implementation using Hibernate (HibernateBeanDaoImpl<BeanType>) from which all my beans extend. The pointcut I'm using is this : "execution(* com.mypackage.BeanDao.save*(..))".
The problem I'm having is that the "save(BeanType bean)" method gets intercepted, but the "saveAll(Collection<BeanType> collection)" method does not. Can anybody tell me what I might be doing wrong ?
I'm using @Before advice on the @Pointcut, and I have <aop:aspectj-autoproxy/> declared along with all my @Aspect beans in my context. I'm using a mixture of annotated aspects and ProxyFactoryBean intercepted beans, though none of the latter affect the beans with which I'm having this problem.


Reply With Quote
ointcut id="entryPointMethod"
