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:6522 | -solrac, September 7, 2005
More Programming articles...

Buy Large Wall Art Prints

coding headlines

Develop your own Raspberry Pi OS

Bash: Use the Test Command for multiple aspects

Add Video Streaming to C/C++ apps with Nex Gen Media Server API

e-book: Sed One-Liners Explained

String matching in regular expressions

Debugging Shell Scripts

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

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