About model-based builder creationAdded by IBM on June 28, 2011 | Version 1 (Original)
|A model-based builder is a builder that you create and is based on a model.
A model-based builder is a builder that you create and is based on a model.
The model, composed of standard IBM® WebSphere® Portlet Factory builders, provides all the functionality required by the model-based builder.
The model-based approach to creating a builder has several benefits:
- You can create your own special-purpose builder without having to write any Java code.
- All necessary builder-related files and artifacts, including your builder generation class, are created automatically for you by a tool called the builder skeleton.
- You can easily do development and testing of the model before converting it into a builder.
- You can add, delete or modify the builder calls in the model until you attain the desired behavior and functionality required for your builder.
- Once your builder is created, you can easily enhance by making changes to the base model and regenerate your builder.
Builder inputs table
The builder inputs table displays all the inputs that you profiled-enabled in your base model.
Dealing with name conflicts
Sometimes your builder encounters conflicts with other elements in a model.
Usage of the builder skeleton tool
The builder skeleton tool takes your base model and its profiled inputs, converts them into a builder, and automatically generates all the required artifacts.
Generate your builder
To generate your builder, you must now apply the builder skeleton.
Maintaining your builder
If you need to make a correction or an enhancement to your new builder, you merely add the new functionality to the base model.
Creating inputs for your builder
You will need to decide what information, in the form of builder inputs, you will display to the user of your builder.
Simple versus complex
You have a choice to make when creating your builder base model: You can opt to include only the builders needed to provide the desired basic functionality, or you can include many builders to provide lots of functionality and options.
Parent topic: Overview of builder architecture