title: Robotlegs 2 migration - Dynamic view
body: <p>I used RB1 in my projects the following way: I had externally-loaded GFX with linkage names. I did something like this:</p>
  
  <pre><code>injector.mapClass(MyView, MyView);
  var ClassReference : Class = getDefinitionByName(id) as Class;
  mediatorMap.mapView(ClassReference, MyMediator);
  </code></pre>
  
  <p>In mediator I used <code>getViewComponent</code> and passed it into the <code>MyView</code> class.
  <code>MyView</code> was injected to the mediator. </p>
  
  <p>Now in RB2 I have no possibility to take view by <code>getViewComponent</code>.
  Also I cannot inject view into Mediator, since I get its class only in runtime by <code>getDefinitionByName</code>.</p>
  
  <p>Could you please give me some piece of advice on how to handle this?</p>
  
  <p>Thank you!</p>