Applied mcculls patch for issue 235 - OSGi classloading. The goal is to use a bridge classloader whenever:
 - the OSGi-invoked/extended methods are public
 - the application classes are not loaded in a System classloader

This changes mccull's original patch by using the System Class Loader if that was used to load the application classes. This should be a fairly reasonable thing to do, and it means users who aren't using OSGi or Java EE get a simpler experience.

git-svn-id: https://google-guice.googlecode.com/svn/trunk@710 d779f126-a31b-0410-b53b-1d3aecad763e
6 files changed