Template Method (TM)

Behavior DefinED

A PED Template Method (TM) supports Inversion of Control. That is, an Adaptable Technology Wrapper can use a TM to briefly return the thread-of-execution to application code. The TM must explicitly be satisfied by a concrete application class. 

The TM pattern is sometimes used in combination with a Collecting Parameter.

SOURCE EXAMPLE

In this example a list of test Domain Entity instances are populated for subsequent insertion into an in-memory database. The populateCreateListTM() method is invoked from a Rule:

SampleDataPopulator

Source Search