Sam Newman's site, a Consultant at ThoughtWorks

By no means am I an AOP expert, but the claims made by a recent “devx article”: (spotted thanks to “John Flinchbaugh(Dynamic Proxies)”: ). Entitled “Java Dynamic Proxies: One Step from Aspect-oriented Programming” made me want to comment. It claims that:

…once you understand proxies, you’ve made a small conceptual leap towards the bigger picture—aspect-oriented programming (AOP)

Firstly, dynamic proxies, have nothng to do with AOP. Sure, they can be used to accomplish some AOP goals in the way they allow code to be dynamically wrapped around methods, but they are a means to an end. AspectJ doesn’t even use dynamic proxies – it inserts Aspects using compile-time sourcecode manipulation. The use of dynamic proxies in AOP is an implementation detail, not something inherent in the use of AOP.

You might gain some understanding as to how some of the AOP frameworks implement Aspects by learning about dynamic proxies, and you might even get a good feeling of the power provided by dynamically inserting code, but you are a long way from fully understanding the complexities of AOP.

5 Responses to “Dynamic Proxies != AOP”

  1. GED

    The font for this blog is unreadable on Windows 2000 w/ Firefox 0.91

  2. Sam Newman

    Gah! thanks for the heads up. It looks fine in firefox 0.9 on windows XP! I think it’s a problem with the font as its installed on windows 2000 – its installed, just a bad version of Lucida Sans. I’ll try out some alternatives. Any chance you can send me a screenshot?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Basic HTML is allowed. Your email address will not be published.

Subscribe to this comment feed via RSS

%d bloggers like this: