The Singleton of the Console
Ensure a single point of interaction for the mainframe operator console.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Singleton
ARCANUM SCHOOL: Abjuration // Restriction
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
/* ooRexx Singleton */
::class Console private
::attribute instance class
::method getInstance class
if self~instance = .nil then do
self~instance = self~new()
end
return self~instance
::method init
say "Console connection established."
The operator console is absolute; there can be only one connection from the orchestrator script to the master control. The Singleton enforces this unbreakable law.
Runic Tags:
#singleton
#console
#rexx