Librenix  
(Show all Java articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Java Theory: Decorating with dynamic proxies

Up
vote
Down

The dynamic proxy facility, part of the java.lang.reflect package and added to the JDK in version 1.3, allows programs to create proxy objects. This article show you how to add extra power to your design pattern implementations with dynamic proxies and eliminate many handwritten or generated classes.
Dynamic proxies provide an alternate, dynamic mechanism for implementing many common design patterns, including the Facade, Bridge, Interceptor, Decorator, Proxy (including remote and virtual proxies), and Adapter patterns. While all of these patterns can be easily implemented using ordinary classes instead of dynamic proxies, in many cases the dynamic proxy approach is more convenient and compact and can eliminate a lot of handwritten or generated classes.
 read more | mail this link | score:7117 | -solrac, September 7, 2005
More Programming articles...

Abstract Art on stretched canvas

coding headlines

Introduction to Perl one-liners

E-book: Perl One-Liners Explained

perl1line.txt: A handy Perl script collection

Perl One-Liners Explained: Handy Regular Expressions

e-book: Sed One-Liners Explained

Apache2, mod_rewrite tutorial: Redirect requests by device

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin