Time has come, to dedicate a litte effort into reinvestigating the aspect oriented java scene. The purpose is quite focused, I want to get rid of all logging in my code and put that in aspects instead. To this purpose I google:
- onjava has an article with a working example using aspectwerkz to provide persistance. They think that the greatest solution aspectJ is too big a step to take.
- here an overview of many open source aspect oriented frameworks is provided.
- it is announced on aspectJs homepage that aspectwerkz and aspectJ are joining up to make aspectJ1.5 — this seems like the way to go. AspectJ has eclipse integration as well
While looking for aspects I found this site for java tools . My attention was primarily caught (if you can say that about a 10 sec glimpse — what a information consuming/sorting/filtering world this has turned into) by a project offering commandline option parsing for java. I could need that, but I haven’t really decided if it was not better to use more suited scripting languages like perl or python or bash (as I have primarily done before).
I also came around this article on log4j which has a nice short intro to the concepts.
I also found this blog, also using wordpress, and interested in similar topics to me, so I think I will try and reference a blog-entry on aspects mainly to see if he gets a ping and posts a comment with me >D)
On a parallel track, the annotations of java 1.5 is covered a bit by these links:
There is an eclipse plugin to generate aspect oriented logging code. I tried it at one time, and it seemed to work fine. I think I will revisit it, to see if it is a better/easier path than develop stuff using aspectJ.
I had this this guy’s blog (Victor Yushenko’s Weblog) in a tab yesterday, when I had to suspend my computer (forgot power at work). He’s working on similar things and seems cluefull, so I’ll keep the reference around by linking it here.