Hi,

New to GIN, but very familiar with DI through Spring and a little bit
from Guice.

In the HelloMVP sample code provided by the GWT team, in their
AppActivityMapper, here is this method with the comment about gin:

****************
      /**
        * Map each Place to its corresponding Activity. This would be
a
great use
        * for GIN.
        */
       @Override
       public Activity getActivity(Place place) {
               // This is begging for GIN
               if (place instanceof HelloPlace)
                       return new HelloActivity((HelloPlace) place,
clientFactory);
               else if (place instanceof GoodbyePlace)
                       return new GoodbyeActivity((GoodbyePlace)
place, clientFactory);

               return null;
       }
****************

Is this comment implying that you would pass a Ginjector into the
AppActivityMapper and retrieve a particular Activity based on the
SomeViewForThatActivity.Presenter interface?

Thanks,
-Yaakov.

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

Reply via email to