A pattern can contain multiple parameters where the argument for one parameter, the supplier parameter, is used to calculate the values for dependent (client) parameters. When the user specifies a valid argument for a supplier parameter, the update methods are called to recompute the dependent client parameters.
You add a dependency relationship by using the New Pattern wizard when adding a new pattern or by using the Properties view from the Pattern Authoring view. When added, the code for update hot spots methods is added to the pattern implementation model. The three types of update methods are generated only for the client parameter. Update methods are invoked for the following activities: addition of a supplier argument, removal of a supplier argument, and no change to the supplier argument when the pattern is reapplied.
Using update methods, you can suppress total or partial expansion of the client parameter until the required values are specified in the supplier parameters. The following code shows the update methods:
To assist you with your code design, refer to the resources available in the pattern online help for pattern framework and other API references. To open the references, click API reference or Extention Points Reference and then click one of the Patterns topics.
, expand eitherTo add code to the update methods:
Parent topic: Supplying implementation code for patterns
Related concepts
Pattern code and support files
Pattern expansion
Related tasks
Defining expansion methods
Regenerating source code
Regenerating pattern definitions