Monday, July 12, 2004

Dynamic Proxies in Java

An interesting and well-written article on Java Dynamic Proxies is available here. Dynamic proxies are an easy way to add dynamic behaviour to your code, after the fact. The typical example is logging, but the article also discusses hiding EJB or RMI complexities from clients. I've seen some very heavyweight (non-EJB) architectures that could benefit greatly from an approach like this (rather than relying on the poor developers to implement huge amounts of implementation code for every form). This is essentially the promise of Aspect-Oriented Programming, however, this article provides a nice java-based introduction to it.

0 Comments:

Post a Comment

<< Home