• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Application Design Patterns ... > Building Façades on the Server

15.3. Building Façades on the Server

As your application grows, so does the number of classes and components that it uses. In many situations, to complete an operation, you will have to affect multiple components at the same time. On these occasions, the façade pattern comes to the rescue. Design Patterns (Addison Wesley) defines façade as a way to "provide a unified interface to a set of interfaces in a subsystem. Façade defines a higher level interface that makes the subsystem easier to use." In other words, it provides a unified frontend to a set of functionality that would normally be sparse. Here's a very simple example.

On the client side, we have a Chat component and a Notes component. We also have a Clear All button. When this button is clicked, the following call is made to the server side:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint