well Decorator adds behavior to an object whereas Proxy controls access to an object. However it seems that its a semantic difference more to deal with the nomenclature. So a user needs to name the proxy or decorator accordingly, however the design remains the same. Somebody please correct me if I am wrong
> Somebody please correct me if I am wrong
Nope, I think that was fine: both a proxy and a decorator wrap a target.
Structurally that's all they do in their basic form. One (the proxy) pretends
not to be there while the other (the wrapper/decorator) adds some
frivolites to the functionality originally present in the wrapped target.
kind regards,
Jos
> > Somebody please correct me if I am wrong
>
> Nope, I think that was fine: both a proxy and a
> decorator wrap a target.
> Structurally that's all they do in their basic form.
> One (the proxy) pretends
> not to be there while the other (the
> wrapper/decorator) adds some
> frivolites to the functionality originally present in
> the wrapped target.
>
> kind regards,
>
> Jos
thanx