Skip to end of metadata
Go to start of metadata

Simple, dynamic, lightweight and powerful AOP for Java


AspectWerkz is a dynamic, lightweight and high-performant AOP framework for Java.

  • AspectWerkz offers both power and simplicity and will help you to easily integrate AOP in both new and existing projects.
  • AspectWerkz utilizes runtime bytecode modification to weave your classes at runtime. It hooks in and weaves classes loaded by any class loader except the bootstrap class loader. It has a rich and highly orthogonal join point model. Aspects, advices and introductions are written in plain Java and your target classes can be regular POJOs. You have the possibility to add, remove and re-structure advice as well as swapping the implementation of your introductions at runtime. Your aspects can be defined using either an XML definition file or using runtime attributes.
  • AspectWerkz is Free Software. The LGPL-style license allows the use of AspectWerkz in both commercial and open source projects.

Want more?

(tick) Start by diving into the Hello World Tutorial or some more complex tutorials.
(tick) Have a look at the performance figures.
(tick) Or give a try to the new Eclipse plugin.

Site map

Browse the site using the site map.

  • No labels


  1. Anonymous

    I use a hosted environment and I do not have control over the J2EE container. I have authority to deploy my web/J2EE applications only.

    I also need to instrument some third party libraries and I do not want to touch them.

    How can I use AspectWerkz in this conditions? Is there a programmatic way to kick the weaving at the time my J2EE application is loaded?

  2. Hi,

    I'm using AspectWerkz for my application. When i specify

    set _EXECJAVA=%ASPECTWERKZ_HOME%\bin\aspectwerkz.bat

    in catalina.bat file, i'm getting the following error (in some cases) while running tomcat 5.0.

    The input line is too long.
    The syntax of the command is incorrect.

    Did anyone have an idea on this??

    Thanks in advance.