Template Method (TM)

Behavior DefinED

A PED Template Method (TM) supports Inversion of Control. That is, an Adaptable Technology Wrapper or an abstract base class 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.


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:


Source Search