Java Reference
In-Depth Information
Facade (Chapter 4)
SOLUTION 4.1
Your diagram should look something like Figure B.3.
Figure B.3. This diagram shows the flight path application factored into one class for
calculating a flight path, one for displaying a flight path, and one that simplifies use of the
Swing libraries.
Note that all the methods of SwingFacade are static methods. Does your solution make
these methods static? If not, why not?
SOLUTION 4.2 ( from page 47 )
Some differences to note between demos and facades follow.
A demo is usually a standalone application, whereas a facade is usually not.
A demo usually includes sample data; a facade does not.
A facade is usually configurable, whereas a demo is not.
A facade is intended for reuse, whereas a demo is not.
A facade is intended for use in production; a demo is not.
Search WWH ::




Custom Search