Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] unweaving, reweaving and overweaving in AspectJ

Hi,

Overweaving/reweaving weren't quite designed for what you are intending but it might be possible to use the facilities for that. Both of those mechanisms were designed for adding new aspects to a class, but by presenting something different to the weaver when it attempts reweaving, you could get it to weave a different version of an aspect. Just ensure the aspect is listed in the aop.xml and then at load time if the alternate version of the aspect is found (in classfile form) it should replace the version the class was originally woven with.

cheers,
Andy


On 20 February 2013 00:57, José Miguel Horcas Aguilera <horcas@xxxxxxxxxx> wrote:
Hello, I read some information about the possibility of unweaving a .class with the aspects woven (source: http://andrewclement.blogspot.com.es/2010/05/aspectj-overweaving.html).

I would like know how to perform this action and if it is possible to do using load-time weaving. The goal is to change the aspect that is incorporated into a specific class without re-compile that class.

Thanks in advance,
José Miguel.

_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-dev



Back to the top