On Jun 11, 2009, at 2:30 PM, BerlinBrown wrote:

I have a Clojure applications with different files, different
namespaces and I have imports of classes within those files/
namespaces.

I don't think the following is exactly what you're asking for, but you can use "clojure.contrib.core/new-by-name" to do something like what you described.

Here's an example from clojure.contrib.miglayout.internal:

(def MigLayout "net.miginfocom.swing.MigLayout")

[...]

    (.setLayout (new-by-name MigLayout layout column row))

[...]

Using this technique I was able to change clojure.contrib.miglayout's dependence on the miglayout jar from compile time to runtime.

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to