| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <title> |
| Load-time weaving |
| </title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| </head> |
| <body> |
| <h1> |
| Load-time weaving |
| </h1> |
| |
| <p>Load time weaving enables you to write your aspects and Java classes in separate |
| projects and defer weaving them together until the point at which the classes are loaded.</p> |
| |
| <p> |
| To launch a load-time weaving application: |
| <ol> |
| <li>Select <b>Run > Run..</b></li> |
| <li>Choose <b>AspectJ Load-Time Weaving Application</b></li> |
| <li>Select a project and main method as normal</li> |
| <li>Switch to the <b>LTW Aspectpath</b> tab and add the project(s) |
| and/or Jar file(s) containing your aspects using the |
| <b>Add XXX</b> buttons</li> |
| <li>Click <b>OK</b> to launch</li> |
| </ol> |
| </p> |
| |
| |
| <p><img border="0" width="159" height="27" src="../images/ngrelt.gif" alt="Related tasks"><br> |
| |
| <a href="launching.htm">Launching a program with the main method in a class</a><br> |
| <a href="ajlaunching.htm">Launching a program with the main method in an aspect</a><br> |
| <a href="aspectpathlaunching.htm">Launching a program with an aspectpath or an outjar</a><br> |
| <a href="debugging.htm">Debugging a program</a> |
| </p> |
| |
| </body> |
| </html> |
| |