Dynamic Code Generation
How do you customize a feature? Customizations that will involve user initiated feature? While this does not mean that a user can create a feature out of the air but under the context of the application’s domain features could dynamically adopt to a user’s need. One example here could be offering promotions or additional inputs based on users past usage history and an appropriate user interface to highlight it. A template based engine could exactly do that by generating source during the runtime. The inputs to a template engine is a data model that feeds the input data and a template that provides where to use this data and on the fly an engine uses these inputs and provides an output. Apache Velocity is a java based template engine that can generate source during runtime. Use the following resources to get started with Apache Velocity.











