Thursday, February 12, 2009

Proxy Design Pattern

Proxy is not a new term for a person like me who has dubious record in school days in terms of attendence. Me and my similar thinking friends were helpful for each other in giving attendence. When one of us would be absent, other will give his attendence. This other person is called a proxy for the original one who is absent in the class and enjoying good times. Thus proxies acts as a place holder for original object.

Example:
1) Using Java XML Pack, you use proxies to access web services with JAX-RPC
2) Loading image icon which is taking time, we first contruct a frame for it using proxy object and later load image.

No comments:

Post a Comment