|
Hi Andrew, If you can create your own classloader
within the server, you could enable load-time weaving for that. For example,
AspectJ load-time weaving includes org.aspectj.weaver.loadtime.WeavingURLClassLoader,
which you should be able to configure for your web app. To integrate a custom loader like this for
a Web app you’d want to write a small piece of bootstrap logic that would
load most of your application functionality from your own loader, rather than
the normal Web application class loader. E.g., you might have your servlets forward
requests to a class using Class.forName(“helperClass”, false, weavingLoader).
However, this would only weave classes loaded through this loader (i.e., only
for your application). This wouldn’t work for JSP’s either unless
you precompiled them, since you can’t configure how they get loaded
(though again they could dispatch to classes that are woven). If you get this working, I’d be
interested to hear about it. Ron From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Ochsner Hi: |
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
