I have an existing project built on spring.
I would like to catch calls to HibernateTemplate.save() so I define a pointcut on exec(save()), and log the time in an around advice.
I could define the aspects using spring AOP, but I can see the spring AOP only works if the object in the pointcut is a bean, but in my case, the HibernateTemplate could be created in a new() directly in existing client code.
so I have to use aspectj compiler, through maven plugin. I wonder if there are any potential conflicts for mixing spring AOP and aspectj ? ---- previous developers of this project may have already used Spring AOP somewhere
Thanks Yang