It's not a secret anymore!
The moose likes Beginning Java and the fly likes Client Proxy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Client Proxy" Watch "Client Proxy" New topic

Client Proxy

Kathy Lynch

Joined: Feb 26, 2001
Posts: 25
Can anyone explain to me what is meant by "client proxy". There is some comments in some code that I am editing that declares "This is the reference to the client proxy."
Thanks in advance for any help!
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

A proxy is an object that acts in behalf of another object.
There are a number of applications for a proxy and it would be hard to tell what it is in your case without seeing some code. In general though, the proxy acts as a kind of middle man for a client object and the "real" object that is being proxied.
The GoF book lists the following types of proxies:
1) remote proxy - provides a local representative for an object in a different address space
2) virtual proxy - creates expensive objects on demand.
3) protection proxy - controls access to the original object.
4) smart reference - is a replacement for a bare pointer that performs additional actions when an object is accessed.

Junilu - [How to Ask Questions] [How to Answer Questions]
rani bedi
Ranch Hand

Joined: Feb 06, 2001
Posts: 358
go through the article on

Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
I agree. Here's the link:
subject: Client Proxy
It's not a secret anymore!