Hello,
I am trying to use custom aspects to wrap certain <Entity>.persist() methods as follows:
TestAspect.java
applicationContext.xmlCode:package com.test.domain.util; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; @Aspect public class TestAspect { @Before("com.test.domain.util.LegalEntity.persist()") public void beforePersist() { System.out.println("beforePersist()"); } }
However, when I try to build the project, it gives the error, "[ERROR] can't find referenced pointcut persist". How can I force it to process LegalEntity_Roo_Entity before TestAspect?Code:<aop:aspectj-autoproxy/> <bean id="TestAspect1" class="com.xyrodian.resman.domain.util.TestAspect"/>


Reply With Quote