Hi,
I am a bit confused about the pointcut expression.
I have the following aop.xml
where org.crank.crud.GenericDao is an Interface. Using this form, I failed to capture any thing.Code:<weaver> <include within="org.gng.jbc.model.*"/> <include within="org.crank.crud.*"/> <include within="org.gng.jbc.dao.*"/> </weaver> <aspects> <aspect name="org.gng.jbc.advice.EncodePassword"/> <aspect name="org.gng.jbc.advice.SetOwner"/> <concrete-aspect name="org.gng.jbc.advice.ApplicationTraceAspect" extends="org.gng.jbc.advice.AbstractTraceAspect"> <pointcut name="traced" expression="call(public * org.crank.crud.GenericDao.*(..))"/> </concrete-aspect> </aspects> </aspectj>
but if I replace org.crank.crud.GenericDao with org.crank.crud.GenericDaoJpa
which is the actual class, I can see the capturing.


Reply With Quote