The generation class implements all the logic to be executed by the builder during generation.
In this class, you can automate the addition of elements to the web application, add builders to the model, that operate on one or more pages in the model, and perform any other logic needed during generation.
Depending on how your builder affects the WebApp, your generation class will implement either the WebAppBuilder
interface or the WebAppControlBuilder
A builder can affect the web application in two ways:
- It can add elements to the web application. Elements that can be added to the web application include:
- Linked objects
- Linked models
- Imported pages
- Event declarations and handlers
- It can modify elements in the web application.
Some builders modify pages, adding or modifying controls on those pages. Builders can also modify other elements in the web application. For example, builders can add to the structure of a variable and add actions to an action list.
For a definitive list of builders that operate on the structure of the web application, see the builders listed as WebApp builders in the builder picker. For the list of builders that can modify the elements in a web application, see the builders listed as JSP builders in the builder picker.
Runtime logic classes
If you need code to execute at runtime, in your generation class, you can add a linked Java™ object to the WebApp that implements the functionality you need.
Parent topic: Overview of builder architecture
Implementation of generation behavior