Generating Code Automatically

Some programming is fun, and some is exceedingly boring. Wouldn't it be nice if you could get the computer to write the boring parts? Automatic code generation goes a long way toward helping you with the boring parts.

Java doesn't have any code-generation APIs, but it does have several utilities that perform code generation. The IDL-to-Java compiler generates Java code, the rmic RMI interface compiler generates Java class files, the JSP compiler generates servlets, and most EJB deployment tools generate extra classes to make your EJBs work within the container.

Most Java development environments that support drag-and-drop GUI design generate the GUI code automatically. For example, if you use Borland's JBuilder, ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.