Re: Online mode architecture
"Alex" <alex-he/e8N7AIe/[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <012901c38d0f$b16c0c60$0201a8c0@maison> |
Hi Chris The classloading stuff (we call it hook) is already available as a separate jar (since release 0.8). It is packed in aspectwerkz-core.jar, and requires bcel.jar and bcel-patch.jar. For the short story about this, this part was at the beginning an autonomous project I started on sourceforge. I donated it to Jonas / AspectWerkz when I joined AspectWerkz. This part is not documented as a standalone one since the primary goal of AspectWerkz is not this one. But getting in the source you will see that it is fairly easy to define your own ClassPreProcessor and even use another bytecode kit (other than bcel), keeping all low level weaving features (classloader hierarchy support, offline compilation, native hook, bytecode kit independance, lightweight). For further (but out of date and less featured) information, go thru my old http://besee.sourceforge.net/ Also note that an alternative might be to use JMangler, as AspectWerkz did before having this full featured solution of its own (version 0.7.x and prior). Also consider that JMangler is GPL / LGPL whereas the AspectWerkz hook part is BSD licensed. Depending of your needs, the java 1.4 -Djava.lang.system.classloader (don't remember exactly) might also be enough. Alex > ----- Original Message ----- > From: "Chris Nokleberg" <chris-k7PiZI/[email protected]> > To: <aspectwerkz-devel-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org> > Sent: Friday, September 19, 2003 5:45 PM > Subject: [aspectwerkz-devel] Online mode architecture > > > > Have you considered separating the classloading stuff into its own project > > or at least making it available as a separate jar that other projects > could > > use? > > > > I think there are plenty of projects that could use a comprehensive > solution > > in this area, for example a load-time JDO enhancer. We are adding some > > transformation capabilities to CGLIB (cglib.sf.net) but currently leave it > > up to the user to hook into the classloader. > > > > Thanks, > > Chris > > > > _______________________________________________ > > aspectwerkz-devel mailing list > > aspectwerkz-devel-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org > > http://lists.codehaus.org/mailman/listinfo/aspectwerkz-devel > > >