JBoss Community

Intercept an method call within a specific statement

created by Rui Pereira in JBoss AOP - View the full discussion

Hi

 

There is some way of intercept an method call within a specific statement?
For instance:

 

String s=getPerson().getAddress().getStreet();

 

The purpose is to intercept the two method calls, getAddress() and getStreet(), just because they were invoked from an method named getPerson().

 

Thanks,
Rui

Reply to this message by going to Community

Start a new discussion in JBoss AOP at Community