[gwt-contrib] Re: Generators and hosted mode refresh

2009-07-24 Thread Alen Vrecko
1) A generator uses the SystemCL.  Not recommended because it won't see changes in client code unless hot-replace is working. 2) A generator uses TypeOracle.  Recommended; changes are picked up on refresh. 3) A generator uses the TypeOracleClassLoader.  Useful for interacting with

[gwt-contrib] Re: Generators and hosted mode refresh

2009-07-24 Thread Alen Vrecko
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

[gwt-contrib] Re: Generators and hosted mode refresh

2009-07-23 Thread Alen Vrecko
Separate the machine from the materials. I think this is good idea. Right now if you do a rename let say rename FooModule to BarModule @GinModules(FooModule.class) - @GinModules(BarModule.class) public class MyInjector{} and refresh the TypeOracleMediator will blow up with an NPE when

[gwt-contrib] Re: Generators and hosted mode refresh

2009-07-23 Thread Alen Vrecko
or ClientReflectingClassLoader or TypeOracleAsClassLoader. On Thu, Jul 23, 2009 at 12:16 PM, Alen Vrecko alen_vre...@yahoo.com wrote: Separate the machine from the materials. I think this is good idea. Right now if you do a rename let say rename FooModule to BarModule @GinModules

[gwt-contrib] Re: Generators and hosted mode refresh

2009-07-23 Thread Alen Vrecko
, 2009 at 12:16 PM, Alen Vrecko alen_vre...@yahoo.com wrote: Separate the machine from the materials. I think this is good idea. Right now if you do a rename let say rename FooModule to BarModule @GinModules(FooModule.class) - @GinModules(BarModule.class) public class MyInjector

[gwt-contrib] Re: Generators and hosted mode refresh

2009-07-23 Thread Alen Vrecko
that the TypeOracleClassLoader would not ignore these and the generator would blow up with ClassCastException. On Jul 24, 12:37 am, Alen Vrecko alen_vre...@yahoo.com wrote: What I have in mind is: Make the special CL per Generator. I'd set the CL to the Thread therefore Generators can access this functionality

Re: Generators don't work good with refresh button

2009-07-22 Thread Alen Vrecko
Thanks. Good idea. I could have learned by now that there is usually user and dev lists... Will repost there. Cheers Alen On Jul 21, 4:11 pm, Thomas Broyer t.bro...@gmail.com wrote: On 21 juil, 14:30, Alen Vrečko alen_vre...@yahoo.com wrote: Hi. The generators are without a doubt a

[gwt-contrib] Generators and hosted mode refresh

2009-07-22 Thread Alen Vrecko
Hi, continuing from http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/c65457fa4df351c1 . Sorry for the added garbage could have known better to post it here in the first place. I see generators as en extension to client code therefore I expect them to behave a bit like

[gwt-contrib] Re: Generators and hosted mode refresh

2009-07-22 Thread Alen Vrecko
. On Wed, Jul 22, 2009 at 6:45 AM, Alen Vrecko alen_vre...@yahoo.comwrote: Hi, continuing from http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... . Sorry for the added garbage could have known better to post it here in the first place. I see generators as en