7.9. Onward

In this chapter you have seen several widely different examples of generative programming. In all the examples, the goal is to reuse your knowledge of the problem domain. GP works in tandem with, not in opposition to, traditional OO techniques for reuse. Some generative schemes build bytecode, like dynamic proxies. Others build source code, like the serialization example. Some code generation tools bind your choices at runtime, like JSP. Others bind at deployment time or compile time, like the RMI stub compiler.

Sometimes your commitment to generative programming is pervasive and tied into special support libraries. For example, a component either is an EJB, and it requires all the associated container goo, or it is not. On the other ...

Get Component Development for the Java™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.