Thanks for your reply!
I'm still amiss here, maybe you could give me a little example to get me
started?
Say i have a pojo with the line
public String test = "this is a test"
Then I apply a pointcut like this
field(public * package.method->*)
how would a simple advice look that utilizes the FieldReadInvocation to read
the value of the String look?
public Object fieldIntercept(FieldReadInvocation inv) throws Throwable {
| Field field = inv.getField();
|
| //then what?
|
| return inv.invokeNext();
| }
thanks again for helping me out! :)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929036#3929036
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929036
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user