How to access a static member through a Class object
<p>I'd like to access a static HashMap object on one of my classes. This psuedocode illustrates how I'm attempting to go about it.</p>

<pre><code>public Class A
{
 public static HashMap&lt;String,String&gt; myMap;
 static
 {
  myMap.put("my key", "my value");
 }
}
...
public void myfunction(Class clazz)
{
 HashMap&lt;String,String&gt; myMap = clazz.getThatStaticMap();
}
...
myFunction(A.getClass());
</code></pre>

<p>The call to <code>getThatStaticMap()</code> is the part I don't know how to do.</p>

<p>In my actual code, I'm calling <code>myfunction</code> with a class as a parameter and returning an  <code>ArrayList</code> of objects created using the class's newInstance() method but I want access to that static data belonging to the class to configure each instance.</p>
