On Jun 11, 6:51 pm, "Stephen C. Gilardi" <squee...@mac.com> wrote:
> 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
>
> smime.p7s
> 3KViewDownload
Now, that is close, not entirely but close enough.
Do you think there will be any performance hits.
--~--~---------~--~----~------------~-------~--~----~
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
Note that posts from new members are moderated - please be patient with your
first post.
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
-~----------~----~----~----~------~----~------~--~---