[jboss-user] [Javassist Users] - How to add an import statement

spatnaik77 do-not-reply at jboss.com
Sun Aug 23 13:17:51 EDT 2009


HI,
I am using jassist to instrument the byte code. I want to add following statement to all methods:
method.insertBefore("{ Profiler.start(); }");
In addition to this i should add the import statement for Profiler class. How should i do it ?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251041#4251041

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251041



More information about the jboss-user mailing list