I am creating another dependency management system that using dynamic
compilation to load dependencies during runtime. My actual issue is I
needed to reconstruct the new effective classpath which should include
the classpath given (from (System/getProperty "java.class.path")) at
the commandline and the URLs given when the dependency management
loads new jars (.getURLs (.deref (clojure.lang.Compiler/LOADER))). I
suppose I don't need to maintain a reference to the many classloaders
if I simply maintain a listing of all URLs in something like a
reference, is that correct?. Also, I suppose the issue now is that in
the future when I may want to support unloading of classes to
facilitate faster startup of applications, like in the design of
nailgun, I would need to create explicit semantics that would need to
be used to unload classes because URLs would not automatically be
removed from my maintained reference, do you agree?

Best,
Brent

On May 24, 3:33 am, Erik Söhnel <eriksoeh...@googlemail.com> wrote:
> Hi,
>
> I guess clojure creates a new classloader for each eval to make
> redefining deftypes possible.
> Is your requirement somehow related to applets or webstart or other
> sandboxes environments?
>
> > I need a reliable method to provide enforce usage of a single
> > classloader for an entire session, this appears to prevent this. Help?
>
> If you do not use dynamic compilation, i.e. no loading of .clj files
> or evaling expressions in a repl or within eval, and AOT-compile all
> your clojure code, then clojure will not use the DynamicClassLoader.
>
> Erik
>
> --
> 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 
> athttp://groups.google.com/group/clojure?hl=en

-- 
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

Reply via email to