PROXY design pattern

Could anyone give me some cases using PROXY design pattern? Thanks.
[81 byte] By [askerz] at [2007-9-27 2:20:17]
# 1

Proxy pattern is a structural pattern. By using it you are allowed to modify the underlying structure of an object leaving transparent the object. I've used it to solve a security problem. In my case we would attach "dinamically" some Interceptor to the Business Events that evaluate the Business events and check some behaviour of it. I've made a Business Event Proxy that implements the same interface of the Business Events but add a dinamyc structure to the component. The other developer now don't know where are get the security information and how it works because everything is done by my implementation of Proxy.

francesco.mondora at 2007-7-4 21:39:27 > top of Java-index,Other Topics,Patterns & OO Design...
# 2

From your statement I can only grasp till when you say that Proxy is a structural pattern, yeah and it is use to encapsulate the parent class that it is calling..

But the question is in object oriented programming a class is already encapsulkated using the private access modifier.

Proxy pattern is still very vague to me, I need a concrete and understandable example.

Cause you mention about that you use proxy pattern to solve the security issue of your application, I know but how, you mention something about dynamically doing something ,, I am completely out ,, Icant understand is there any text or online material that I could read up to understnad better....

kianfatt at 2007-7-4 21:39:27 > top of Java-index,Other Topics,Patterns & OO Design...
# 3

Sir,

Did you try a google search?

java proxy pattern gets 326,000 hits...

Including:

http://www.javaworld.com/javaworld/jw-02-2002/jw-0222-designpatterns.html

http://c2.com/cgi-bin/wiki?ProxyPattern

http://www.fluffycat.com/java/JavaNotes-GoFProxy.html

smokedOut at 2007-7-4 21:39:27 > top of Java-index,Other Topics,Patterns & OO Design...
# 4

Kianfatt, pls cross post your questions to multiple forums or drag up old threads. It will only succeed in irritating/anoying the people likely to help you.

The Proxy pattern is a stuctural pattern since it defines the stuctural pattersn define the relationships between classes. Behavioural Patterns define how classes will interact with each other.

Yes, proxy is conceptually similar to Encapsulation. Whereas encapsulation controls access to the members of a class. The Proxy works in a similar way for controlling access to a whole component or model.

MartinS. at 2007-7-4 21:39:27 > top of Java-index,Other Topics,Patterns & OO Design...
# 5
Wait there whilst I bitchslap myself.....<slap/>Ahh, that feels better.Now maybe next time I'll check the damed dates on the posts...
smokedOut at 2007-7-4 21:39:27 > top of Java-index,Other Topics,Patterns & OO Design...