I'm solving this problem slightly differently. My exact problem is that I have "plugins" into my main application that based on configuration will be compiled in or not. So at the top level I have no idea what activities will be present or not until compile time.
What I did was create a generator that generates my ActivityMapper at compile time based on the Activity classes found. I then use annotations to link activities to places or default to convention, ie. FooActivity maps to FooPlace. Then, as you've done, my ActivityMapper has a getActivity that returns a new instance of the activity. -- 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.
