summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorwisberg <wisberg>2005-12-18 23:18:07 +0000
committerwisberg <wisberg>2005-12-18 23:18:07 +0000
commit8111599318360cb8c44ce2bf05a601089105121e (patch)
tree59c89f2b7b040629243d4648ff9b42416b87a560 /docs
parent9bf643029af493c8d0d58293ddf38f662a0eb43c (diff)
downloadaspectj-8111599318360cb8c44ce2bf05a601089105121e.tar.gz
aspectj-8111599318360cb8c44ce2bf05a601089105121e.zip
updated ancient LTW answer
Diffstat (limited to 'docs')
-rw-r--r--docs/faq/faq.xml17
1 files changed, 12 insertions, 5 deletions
diff --git a/docs/faq/faq.xml b/docs/faq/faq.xml
index 5879dc182..ff6acf3ad 100644
--- a/docs/faq/faq.xml
+++ b/docs/faq/faq.xml
@@ -4106,14 +4106,21 @@ java -javaagent:aspectjweaver.jar -classpath "aspects.jar:${CLASSPATH}" ..
</question>
<answer>
<para>
- AspectJ 1.1 can weave binary aspects
+ Since the 1.1 release, AspectJ can weave binary aspects
into classes in bytecode form. Hooked up to a class loader,
this can weave class bytecodes after they are read in,
before the
- class is defined by the VM. In the 1.1 release (or soon
- thereafter) we will provide a proof-of-concept class loader,
- but we expect most people will already have a custom
- class loader which they will adapt to invoke our weaver.
+ class is defined by the VM. (This means load-time weaving
+ only works were aspects are not required to compile the pure-java
+ classes. If the aspects are required, then the Java classes
+ have to be compiled with the aspects using the AspectJ compiler.)
+ The AspectJ 1.2 release had the
+ WeavingURLClassLoader, and the 1.2.1 release introduced
+ the aj.bat script for Java 1.4.
+ The AspectJ 5 release introduces much better support for
+ load-time weaving, including declaring concrete aspects
+ in XML files and integrating with Java 5 and BEA JRocket
+ JVM's. See <xref linkend="aspectj5ltw"/>.
</para>
<para>Some have asked about only weaving particular classes
specified at run-time.