my dog learned polymorphism*
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
Author

Client Proxy

Kathy Lynch
Greenhorn

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
Bartender

Joined: Feb 26, 2001
Posts: 4447
    
    5

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.
HTH
Junilu

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

Joined: Feb 06, 2001
Posts: 358
go through the article on
http://developer.java.sun.com/developer/technicalArticles/DataTypes/proxy/


Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Client Proxy
 
Similar Threads
Rules Round-up Game
Do jnlp file updates itself
running java mail program in a machice connected to LAN
Why does "connnection timed out" appear when trying to read remote xml file.
Another 'Y' game