Hi,
I have the following advice:
and that should be executed after the following methods:Code:@Aspect public class PictureUpdateAspect { @After("execution(public void dao.PictureDao.*(model.Picture)) and this(picture)") public void onPictureAddDelete(Picture picture) { System.out.println("test"); } }
in my XML config I have the following:Code:package dao; public class PictureDao { public void save(Picture picture) {} public void delete(Picture picture) {} }
But for some reason my aspect's method is never called.Code:<bean id="pictureUpdateAspect" class="aspects.PictureUpdateAspect" /> <aop:aspectj-autoproxy />
Is there anything I forgot?


Reply With Quote