[jboss-user] [JBoss AOP] - Intercept an method call within a specific statement

Rui Pereira do-not-reply at jboss.com
Sat Dec 18 11:03:55 EST 2010


Rui Pereira [http://community.jboss.org/people/rhp] created the discussion

"Intercept an method call within a specific statement"

To view the discussion, visit: http://community.jboss.org/message/576718#576718

--------------------------------------------------------------
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
[http://community.jboss.org/message/576718#576718]

Start a new discussion in JBoss AOP at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2027]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101218/4f5b4760/attachment-0001.html 


More information about the jboss-user mailing list