This pattern is layer-specific; it is used within the Inbound/Outbound architectural layer. An IC is the boundary class interacting with a Business Facade.
A PED I/O Controller (IC) supports the request/response life cycle and typically does not change state. Martin Fowler describes this pattern straight-forwardly:
“The controller’s job is to take the… input and figure out what to do with it.”
Some technologies use a specific pattern language; in the RESTful arena a similar class might be labelled a “resource”. However, PED’s pursuit of a Unified Pattern Language favors ubiquitous pattern names that are technology agnostic.
|Extend Base Class||Y|
|Static Public Methods (enum)||N|
|Delegate to Helper||Optional|
- A no-argument constructor enables scoping with a CDI bean instance/proxy.
- We recommend using an IC in a main thread context.