1.3.0 permalink Arrow_down_16x16

with-loading-context

clojure.core

  • (with-loading-context & body)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:5056 top

(defmacro with-loading-context [& body]
  `((fn loading# [] 
        (. clojure.lang.Var (pushThreadBindings {clojure.lang.Compiler/LOADER  
                                                 (.getClassLoader (.getClass ^Object loading#))}))
        (try
         ~@body
         (finally
          (. clojure.lang.Var (popThreadBindings)))))))
Vars in clojure.core/with-loading-context:
Used in 0 other vars

Comments top

No comments for with-loading-context. Log in to add a comment.