title: Eliminating GWT ActivityMapper boilerplate
body: <p>I am using the GWT Activities and Places framework to structure my application and it is turning out nicely. One thing that annoys me though is that the <code>ActivityMapper</code> implementation is (1) receiving all the views in the application (2) contains a giant if/else block for instantiating activities based on the received place. It will only get worse as the number of views increases.</p>
  
  <p><img src="https://i.stack.imgur.com/fOQgZ.png" alt="ActivityMapper screenshot"></p>
  
  <p>I am already using <a href="http://code.google.com/p/google-gin" rel="noreferrer">Gin</a> but I don't see how I can use it here. </p>
  
  <p>How can I reduce or eliminate the boilerplate from my <code>ActivityMapper</code>?</p>