AspectJ

AspectJ Maven Tempate

I've been pretty busy with a new job recently. I've not been able to find a complete Maven+AspectJ template on the Internet, I though I'd quickly knock one up and pop it on Github.

It contains:

  • pom.xml with necessary dependencies and plugins
  • an aspect
  • a class that aspect advises
  • a test to ensure the aspect is correctly applied

https://github.com/alexec/aspectj-example

Enjoy.

Snippet: AspectJ and Ant

I've just started working with AspectJ and despite its non-intuitive syntax, I'm pretty sold on its effectiveness at reducing development time and complexity by factoring out crosscutting concerns such as logging and security. However, the Internet is a little lacking in guides and how to build it, so here's my how to.
Subscribe to RSS - AspectJ