Java + Spring + Maven application:
Can somebody provide me with the link or advise me on a pure AspectJ implementation without proxy-based Spring AOP?
My application is purely Spring + Maven based. I have currently implemented aspects with Spring AOP which is not solving my problems.
If I try to access a private method2()
from public method1()
within the same class A
this is not supported.
I would like to know : 1) How to write an aspectj with pointcut that supports intraclass method calls? 2) How to configure that into my current Spring,maven project with AspectJ load-time weaving? 3) how to configure AspectJ Maven Plugin for compile-time weaving in Tomcat server + eclipse.
@Controller
class A {
public void method1() {
method2("foo");
}
private String method2(String text) {
return text;
}
}
Expected output:
log.entering(method1)
log.entering(method2)
print abc
log.exiting(method2)
log.exiting(method1)