DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Computer Science (http://www.daniweb.com/forums/forum14.html)
-   -   Design Pattern - Proxy (http://www.daniweb.com/forums/thread70206.html)

someone030 Feb 16th, 2007 7:57 pm
Design Pattern - Proxy
 
Hello,
I'm implementing a software module and hesitating about the appropriate design. The client needs to perform operations for an componenet which is divided to few parts in the memory. However the client treats the componenet as one contiguous.
My design includes a "Manager" which has an interface for the client and handles all operations for this components. The "Manager" knows when it is asked to read/write the appropriate part of the memory. It hides the fact that the component is divided to few parts in the memory space.
I wonder if this is called a proxy, facade or a bridge? Or maybe other pattern? I think it is a proxy but not sure since there few real objects (i.e. subjects) and not only one.
In case this is a proxy - must I use also the "subject" or can the client use the proxy object directly? I don't see the point to "subject" and it will just cause to more unnecessary files and code.

Thanks in advance,
Ilan

taineechan Feb 17th, 2007 8:58 am
Re: Design Pattern - Proxy
 
My design pattern knowledge is not too good, but try visiting www.dofactory.com .it summarises design patterns nicely

dronkin Oct 23rd, 2008 10:13 am
Re: Design Pattern - Proxy
 
Hi
I think you'd better use Chain-of-Responsibility, it's supposed to fit your need as i figured, see more here: http://www.dofactory.com/Patterns/Pa...in.aspx#_self2

David


All times are GMT -4. The time now is 8:22 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC