[jboss-user] [JBoss AOP Development] New message: "Re: Help: Error [Instrumentor] AOP Instrumentor failed"

Kabir Khan do-not-reply at jboss.com
Thu Feb 4 12:04:46 EST 2010


User 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




More information about the jboss-user mailing list