I haven't used gin for a long time, but try to inject ginjector and
then you shoud have method get instance by class name.

On 30 Gru, 03:54, metalhammer29a <[email protected]> wrote:
> I have custom places in my app:
> HomePlace extends ApplicationPlace {}
> MailPlace extends ApplicationPlacfe {}
>
> I keep a reference of all my places in a list, in some other class
>
> class AppPlaces {
>
> List<Class<? extends Place>> places = new ArrayList<Class<? extends
> Place>>();
>
> public AppPlaces(){
>
> places.add(HomePlace.class);
> places.add(SettingsPlace.class);
> places.add(MailPlace.class);
>
> }
> }
>
> how can I convert from "HomePlace.class" to HomePlace instance,
> preferrably using Gin and avoiding "new keyword"?
>
> are GWT Places Singleton ?
>
> cheers

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to