Hi,

How would one create a "plugin" modular composition using clojure
functions/modules only (i.e without resorting to java interface/
plugin class implementations)?

For example;
; say myutil/ut1.clj contains
(ns 'myutil.ut1)
(defn foo [] :foo-ut1)

; and myutil/ut2.clj contains
(ns 'myutil.ut2)
(defn foo [] :foo-ut2)

;and mylib/lib1.clj contains
(defn libfoo [] (foo))

Then from my app, I'd like to tell mylib.lib1 which ut to use when it
loads, before calling libfoo.
Is this possible, or is there some other clojure way of doing this?

Thanks,
Adrian.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to