> > in GIN's case we could then do
> > ctx.getTypeOracleClassLoader().useSystemFor().startingWith
> > ("com.google.gwt.inject.").create(); and not worry about any
> > surprises.
>
> That seems, complicated and unnecessary. If you really, really need the
> SystemCL version of a class, you'd just access it directly. If you want to
> reflect over the client code as a holistic unit, you'd use the
> TypeOracleClassLoader. I prefer clarity to warm and fuzzy.
The point is that the returned Class from TOCL is linked with another
Class which we'd like to get from the SystemCL in order for it to
inter-operate with generator machinery.
Sure it is possible to get the GinModules from TOCL but as such cannot
be put in the ModuleAdapter since the ModuleAdaper is linked with
GinModules loaded in the System.
You're right, this is complicated. But I don't think it is
unnecessary. In that case maybe the TOCL can have a method byte[]
getBytes(String name). In that case TOCL is a holistic unit yet the
generators have the flexibility to mix and match the classes as they
please on their own.
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---