• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Client Proxy

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
go through the article on
http://developer.java.sun.com/developer/technicalArticles/DataTypes/proxy/
 
reply
    Bookmark Topic Watch Topic
  • New Topic