20050415 Friday April 15, 2005

My First Aspect

It is interesting how the prospect of instrumenting n classes with m methods is a very convincing incentive to figure out how to use Aspect Oriented Programming.

So I embarqued into creating an aspect and weaving it into the build of the Project That I Can't Really Talk About in order to gather some profiling information. It is essentially the aspect that you see listed so many times on "Intro to AOP" articles, except tweaked for the project's context and the profiling requirements.

The end result is not too bad. Getting this to work wasn't too painful, and it was certainly a lot less efforts than hunting for all of the instrumentation points within the app. I think I might pickup that book on AspectJ that I have sitting on a shelf.

-- Fred



( Apr 15 2005, 11:54:50 AM MDT ) Permalink Comments [0]
Trackback URL: http://blogs.sun.com/fredjean/entry/my_first_aspect
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed