[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [aspectj-dev] AspectJ load time weaving on runtime generated	classes | 
Hi Emmanuel,
it is possible if using LTW and if the "byte code chain" is working 
correctly. That means if the weaver gets a chance to weave the generated 
classes while they are being loaded in the target classloader.
I run some experiments some time ago using cglib to generate runtime 
method interceptors and seeing if they got weaved or not, and in my 
situation it was working correctly.
Also, I currently have in my Magma Apache Lab, OpenJPA enhancing classes 
after AspectJ weaved it, or the other way around (and when running tests 
also Cobertura comes into play with its enhancer) but had to setup a 
custom classloader and a quite a number of support classes to have this 
double/triple enhancing process to work smoothly.
Can you elaborate on which kind of environment you are using? Are in in 
LTW? Are you using the agent? Which library is generating classes at 
runtime?
Simone
Emmanuel Castro Santana wrote:
Good evening,
I would like to know if it is possible to apply aspects on runtime 
created classes.
I have been trying this days and still have got no luck.
Thanks in advance,
Emmanuel de Castro Santana
------------------------------------------------------------------------
_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-dev
  
--
Simone Gianni            CEO Semeru s.r.l.           Apache Committer
http://www.simonegianni.it/