✨ ARCANUM RUNE DIFFICULTY: Adept Structural

The Proxy

A guardian construct controlling access to an expensive void summoning.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Proxy
ARCANUM SCHOOL: Transmutation // Void Guarding
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
coclass 'VoidSummoner'
real_summon =: 3 : '''Summoning Void Terror!'''

coclass 'ProxySummoner'
create =: 3 : 'authorized =: y'
summon =: 3 : 0
  if. authorized do.
    real_summon_VoidSummoner_ ''
  else.
    'Access Denied.'
  end.
)

NB. Usage:
NB. p =. conew 'ProxySummoner' ; 0
NB. summon__p ''

A proxy controls access using object-oriented locales to wrap the real operational locale.

Runic Tags: #proxy #access #security #locales