-
1. anyway to do loadtime aop without javaagent?
earnest.dyke May 17, 2011 2:52 PM (in response to deanhiller)Is there a reason your pointcut can't look for annotations and apply your changes only to those classes?
Earnie!
-
2. anyway to do loadtime aop without javaagent?
deanhiller May 17, 2011 3:49 PM (in response to earnest.dyke)From the AOP docs, there was compile time, load time(and then hotswap as well). didn't want compile time, load time required a change to command line.
I figured out how to do it myself with javassist and on bootup I just define the class files before someone loads the class in for the first time thanks to the fact that annovention scans annotations without loading classes(that rocks) and thanks to javasssist reading in bytecode without loading the class files and then I modify the class and inject it into the classloader...works great now!!!
I wish I could have done that with jbossAOP but there was no docs on how to load the new class into the classloader.