ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Code-Generation Techniques for Java
Subject:   not usually the best approach
Date:   2003-09-04 08:31:27
From:   anonymous2
Code generation often means that you aren't using a high-enough level of abstraction in your APIs. Rather than generating source code, creating a multi-step process and the possibility of people ediitng the generated source, it's better to just change your API so that it can be called as simply as your code generator can.