The Proxy Incantation
Intercepting and controlling access to a powerful elemental entity.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Proxy
ARCANUM SCHOOL: Abjuration // Warding
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CLOJURE PATTERN //
(ns tekromancy.proxy)
(defprotocol Grimoire
(read-secret [_ user]))
(defrecord ForbiddenGrimoire []
Grimoire
(read-secret [_ _]
"The forbidden true name of the void..."))
(defrecord GrimoireProxy [real-grimoire]
Grimoire
(read-secret [_ user]
(if (= user :archmage)
(read-secret real-grimoire user)
"Access Denied. You lack the clearance.")))
;; Usage:
;; (def protected-grimoire (->GrimoireProxy (->ForbiddenGrimoire)))
;; (read-secret protected-grimoire :apprentice)
Direct access to the Forbidden Grimoire will incinerate an apprentice’s mind. The Proxy stands as a guardian ward, intercepting requests and validating the caster’s aura before delegating the invocation to the true object, shielding the fragile psyche of the uninitiated.
Runic Tags:
#structural
#proxy
#clojure
#security