Guess I have these methods:
@Service
public class Service1 {
private @Autowired Service2 service2;
public void method1() {
this.service2.method2();
}
}
@Service2
public class Service2 {
public void method2() {
// Do something
}
}
I'd like to know how to capture Service2.method2()
call, when it's called from Service1.method1())
.
Any ideas?