Sample maven project containing a Java agent and examples of bytecode manipulation with ASM and Javassist
Sample maven project containing a Java agent and examples of bytecode manipulation with ASM and Javassist.
See article on my blog : http://tomsquest.com/blog/2014/01/intro-java-agent-and-bytecode-manipulation/
$ # From the root dir
$ mvn package
$ # From the root dir
$ java -javaagent:agent/target/agent-0.1-SNAPSHOT.jar -jar other/target/other-0.1-SNAPSHOT.jar