title: Java equivalent of typeof(SomeClass)
body: <p>I try to implement a </p>
  
  <pre><code>Hashtable&lt;string, -Typeof one Class-&gt; 
  </code></pre>
  
  <p>in Java. But I don't have an idea of how to get this working. I tried </p>
  
  <pre><code>Hashtable&lt;String, AbstractRestCommand.class&gt;
  </code></pre>
  
  <p>but this seems to be wrong.</p>
  
  <p>Btw. I want this to create a new instance of the class per reflection at runtime.</p>
  
  <p>So my question is, how to do this kind of stuff.</p>
  
  <p>Edit:</p>
  
  <p>I have the abstract Class "AbstractRestCommand". Now I would like to create a Hashtable with many commands like this: </p>
  
  <pre><code>        Commands.put("PUT",  -PutCommand-);
      Commands.put("DELETE", -DeleteCommand-);
  </code></pre>
  
  <p>where PutCommand and DeleteCommand extends AbstractRestCommand, so that I can create a new instance with </p>
  
  <pre><code>String com = "PUT"
  AbstractRestCommand command = Commands[com].forName().newInstance();
  ...
  </code></pre>