JBoss development,
A new message was posted in the thread "Help: Error [Instrumentor] AOP Instrumentor
failed":
http://community.jboss.org/message/524220#524220
Author : Kabir Khan
Profile :
http://community.jboss.org/people/kabir.khan@jboss.com
Message:
--------------------------------------------------------------
public Object invoke(MethodInvocation inv) throws Throwable{
Object[] args = inv.getArguments();
args[2] = "Replaced";
return inv.invokeNext();
}
If the advice is used for several methods, you'd obviously need to do some checking of
the types and numbers of paramters, but I've given you the general idea.
--------------------------------------------------------------
To reply to this message visit the message page:
http://community.jboss.org/message/524220#524220