title: how do i create a map with a type parameter of class
body: <p>I'm trying to do something like this:</p>
  
  <pre><code>import scala.swing
  
  class componentMapper {
  
       val map = Map[Class[_], Componenet]()
  
       def apply(c: Class[_], component: Component) = map += (c -&gt; componenet)
  
  }
  
  class Render extends ComponentMapper {
  
       def getRenderer(value: AnyRef) = map(value.getClass)
  
  }
  </code></pre>
  
  <p>This doesn't seem to work. What type parameter should I be using for Class?</p>