That describe how to solve recurring design problems to design flexible and reusable object-oriented software, that is, objects that are easier to implement, change, test, and reuse. ![]() For the client, usage of a proxy object is similar to using the real object, because both implement the same interface.ĭesign pattern is one of the twenty-three well-known In the proxy, extra functionality can be provided, for example caching when operations on the real object are resource intensive, or checking preconditions before operations on the real object are invoked. Use of the proxy can simply be forwarding to the real object, or can provide additional logic. In short, a proxy is a wrapper or agent object that is being called by the client to access the real serving object behind the scenes. The proxy could interface to anything: a network connection, a large object in memory, a file, or some other resource that is expensive or impossible to duplicate. A proxy, in its most general form, is a class functioning as an interface to something else. In computer programming, the proxy pattern is a software design pattern.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |