
cognitect.aws.dynaload.clj Maven / Gradle / Ivy
The newest version!
;; Copyright (c) Cognitect, Inc.
;; All rights reserved.
(ns ^:skip-wiki cognitect.aws.dynaload)
(set! *warn-on-reflection* true)
(defonce ^:private dynalock (Object.))
(defn load-ns [ns]
(locking dynalock
(require (symbol ns))))
(defn load-var
[s]
(let [ns (namespace s)]
(assert ns)
(load-ns ns)
(or (resolve s)
(throw (RuntimeException. (str "Var " s " is not on the classpath"))))))
© 2015 - 2025 Weber Informatics LLC | Privacy Policy