Hi,

I was thinking about allowing tab completion for classes loaded by
Grapes. However I struggle to
programmatically find out what jars Grape has loaded so far. I believe
this is all about classloaders,
and I know very little about them.

I believe the GrapeIvy class adds URLs to a classloader, and all I
would need to do is to query that classloader in PackageHelperImpl.

In PackageHelperImpl the classloader hierarchy is moved upwards
starting with Thread.currentThread().contextClassLoader, but it seems
that moving up that hierarchy, I do not meet the same classloader that
GrapeIvy uses.

So is there any nice way to find that classloader?

regards,
  Thibault

Reply via email to