내가 serviceA.getString()
호출이 TimingAspect에 의해 차단되지 않은 작업을 수행 할 때 나는 다음과 같은 인터페이스와 클래스Perf4j는 인터페이스 방법
public interface ServiceA {
@Profiled
String getString();
}
public class ServiceAImpl implements ServiceA{
String getString(){
System.out.println("getString");
}
}
<beans ....>
<aop:aspectj-autoproxy />
<bean id="timingAspect" class="org.perf4j.log4j.aop.TimingAspect"/>"
<bean id="serviceA" class="com.naresh.profiler.service.ServiceAImpl" />
</beans>
이를 주석의 프로필하지 않습니다. 어노테이션을 인터페이스에서 구현 클래스로 옮기면 인터셉트됩니다. 내가 보는 이유는 메소드 레벨 주석이 상속되지 않는다는 것입니다. 어떻게 해결할 수 있을까요? 일부 CustomBeanAnnotationProcessor
작성 하시겠습니까?