Hi,
tldr; if I have a (defrecord MyRecord) in ns a.b.c and I have a string "a.b.c.MyRecord" how I can invoke (a.b.c.MyRecord.) (or (new a.b.c.MyRecord)?
I thought this was going to be as simple as (defn cfn "a.b.c.MyRecord") ((symbol cfn).) but that throws an ArityException: wrong number of args (0) passed to Symbol. I
I have a protocol with a number of implementations. Each installation will have a single implementation and will chose one based on an environment variable. At runtime I need to look at that environment variable which defines the fully qualified implementation of a protocol. I then need to instantiate that record.
Architecturally equivalent to a simple plugin system. I could alias them all but that requires knowing about all the implementations which is a no-go.
This is where I feel the pain of not having OSGi :).
Thanks all!