12.4 SUMMARY
The domain framework is a layer of code that sits between the generated code and the
existing generic components and platform. Its main function is to avoid repetition and
complexity in the generated code and also in the generator.
The generated code thus comes entirely from models, and the framework is
entirely handwritten. This separation distinguishes DSM from code generated by
wizards, where the application developer is expected to work with and around the
generated code, and code that is common to all applications in that domain is
duplicated into each application. In DSM, the application developer can ignore the
generated code, and the domain framework is referred to by that code rather than
being copied piecemeal throughout it. The separation thus naturally follows the
separation of the different developer roles.
The domain framework also separates along the lines of generalizability. Below it
are generic components, used by a wide range of applications on that platform. In the
domain framework itself are the elements common to all applications in this narrow
domain: the envisaged application space for this DSM solution. Above it is the
information speci?¬?c to individual applications, that is, what distinguishes each of
those applications from each other. Building a domain framework is probably the part
of DSM that will be most familiar to developers from their previous experience.
Pages:
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613