Aspectj

Posts tagged with Aspectj.

Running aspects under OSGi 4.2 with Karaf

One of bigest benefits of Java is byte code manipulation. You can change everything you want in your application without touching source code. That's usefull for many cases, starting from legacy code, where we can't simply modify and recompile library up to modern applications where aspects can be used to handle runtime exceptions. The most popular project is [AspectJ](http://eclipse.org/aspectj/) which is part of [Eclipse](http://eclipse.org) ecosystem, in this post I going to show you how to use AspectJ with Karaf.