Yep, you don't necessarily need to wait to loadtime to do that, with binary weaving you can weave any jar in 'batch' without having the sources around:
ajc -inpath myThirdPartyJar.jar MyAspect.aj -outjar myWovenJar.jar weaving into the system classes is trickier, because of how they are picked up by the JVM. For that you are forced to use binary weaving rather than loadtime weaving. cheers, Andy On 13 December 2011 12:30, Mark <[email protected]> wrote: > I see it now. This is indeed flexible. > > Can it be used to weave a 3rd party or system code? For instance, I may wish > to change the implementation of the toString() method of some 3rd party > type. Can I do it? > > Thanks. > > -- > View this message in context: > http://aspectj.2085585.n4.nabble.com/Why-would-one-ever-want-to-use-Load-Time-Weaving-tp4181328p4191884.html > Sent from the AspectJ - users mailing list archive at Nabble.com. > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
